Your message dated Mon, 02 Jun 2008 20:47:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#482289: fixed in clive 0.4.14-1
has caused the Debian Bug report #482289,
regarding clive: Please add support for Sevenload
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
482289: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482289
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: clive
Version: N/A
Severity: wishlist
Tags: patch
Hello,
recently I "needed" support for Sevenload (sevenload.com). This resulted in the
attached patch which you might want to add to clive.
But before you read the patch I need to add a warning: I haven't coded in Python
before so the attached patch might be totally unfit for inclusion. Please feel
free to change the patch in any way you see as necessary.
A few additional notes:
1. The parser function uses ElementTree
2. The title which is generated automatically is a little bit hosed: German
umlauts get removed, but I'm atm not sure if this happens for all pages or only
Sevenload.
3. The patch was generated against parser.py in the Debian package
(testing/unstable)
I hope this helps to integrate Sevenload support into clive. If you find bugs,
please tell me about them, I'd like to learn. ;)
Kind regards,
Kai Wasserbäch
--
Kai Wasserbäch (Kai Wasserbaech)
E-Mail: [EMAIL PROTECTED]
Jabber (debianforum.de): Drizzt
URL: http://wiki.debianforum.de/Drizzt_Do%27Urden
GnuPG: 0xE1DE59D2 0600 96CE F3C8 E733 E5B6 1587 A309 D76C E1DE 59D2
(http://pgpkeys.pca.dfn.de/pks/lookup?search=0xE1DE59D2&fingerprint=on&hash=on&op=vindex)
--- parse.py.orig 2008-05-21 18:11:49.000000000 +0200
+++ parse.py 2008-05-21 18:28:57.000000000 +0200
@@ -32,6 +32,7 @@
import string
from htmllib import HTMLParser
+from xml.etree.ElementTree import parse
from clive.path import ConfigDir
from clive.error import CliveError, CliveNoMediaError
@@ -50,6 +51,7 @@
('dailymotion.', 'dmotion', self._parse_dmotion),
('guba.com', 'guba', self._parse_guba),
('metacafe.', 'metac', self._parse_metacafe),
+ ('sevenload.com', 'seven', self._parse_sevenload),
]
## Parses a video page data (HTML)
@@ -221,6 +223,25 @@
url = self._parse_from_to(data, 'mediaURL=', '&', skip_from=1)
return (url, vid, low_quality)
+ def _parse_sevenload(self, url, data, low_quality):
+ # A note for reviewers: I haven't coded in Python before, so you'll
+ # find probably a lot that is wrong. This is more of an
+ # proof-of-concept implementation of Sevenload support.
+ #
+ # We need to construct:
+ # http://flash.sevenload.com/player?itemId=[ID from URL]
+ # that will give us an XML-File as a result, which contains the
+ # Video-Location and a lot of other information that we discard atm
+ #
+ try:
+ vid = url.split('/videos/',1)[1].split('-')[0]
+ except IndexError:
+ vid = self._random_vid()
+
+ sevendom =
parse(urllib.urlopen('http://flash.sevenload.com/player?itemId=' + vid))
+ url =
sevendom.getroot().find('playlists/playlist/items/item/videos/video').get('url')
+ return (url, vid, low_quality)
+
def _random_vid(self):
return md5.new(str(time.time())).hexdigest()[:8]
@@ -249,6 +270,7 @@
title = v_info['page_title'].replace('YouTube -', '')
title = title.replace('GUBA -', '')
title = title.replace(' Video - Metacafe', '')
+ title = title.replace('Video "', '').replace('" | sevenload', '')
try:
if v_info['url'].lower().find('dailymotion.') != -1:
title = title.lstrip('Video ').split('-')[0].rstrip()
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Source: clive
Source-Version: 0.4.14-1
We believe that the bug you reported is fixed in the latest version of
clive, which is due to be installed in the Debian FTP archive:
clive_0.4.14-1.diff.gz
to pool/main/c/clive/clive_0.4.14-1.diff.gz
clive_0.4.14-1.dsc
to pool/main/c/clive/clive_0.4.14-1.dsc
clive_0.4.14-1_all.deb
to pool/main/c/clive/clive_0.4.14-1_all.deb
clive_0.4.14.orig.tar.gz
to pool/main/c/clive/clive_0.4.14.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mikhail Gusarov <[EMAIL PROTECTED]> (supplier of updated clive package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 26 May 2008 23:22:19 +0700
Source: clive
Binary: clive
Architecture: source all
Version: 0.4.14-1
Distribution: unstable
Urgency: low
Maintainer: Mikhail Gusarov <[EMAIL PROTECTED]>
Changed-By: Mikhail Gusarov <[EMAIL PROTECTED]>
Description:
clive - Video extraction utility for YouTube, Google Video and other vide
Closes: 481566 482289
Changes:
clive (0.4.14-1) unstable; urgency=low
.
* New upstream release:
- Fixed typo in manpage (Closes: #481566)
- Added support for sevenload.com (Closes: #482289)
Checksums-Sha1:
8a89c72950de7f88d32d7423859012ba26333f8a 1307 clive_0.4.14-1.dsc
518dacadef59f2e389c5784e2db614fbec49d2b2 565538 clive_0.4.14.orig.tar.gz
cf42cbb168355ac5cf2950a83bfa86523a3479eb 3373 clive_0.4.14-1.diff.gz
dbdff27a906917296a7052b2e34fb08af9b57414 50052 clive_0.4.14-1_all.deb
Checksums-Sha256:
53e9e77149d932722f0b325dddc180458017ef83af50232121404fcfde6890aa 1307
clive_0.4.14-1.dsc
e018c730c4a1554520dcf7a3ce00dcee1191ecfe12ee2ad4e3a967e0ceeb8521 565538
clive_0.4.14.orig.tar.gz
3b774b0ad156eae2358d5dc4348d2265960957dc84240327d191b7478769b5cb 3373
clive_0.4.14-1.diff.gz
eebfd76ed97d5593a408914f4e32f227171361805e300484fdf8259da7284cff 50052
clive_0.4.14-1_all.deb
Files:
cef05e2499d395330eb38eee935273bb 1307 utils optional clive_0.4.14-1.dsc
5cbc7a36ba4978c0fa3a01ba0c7092e1 565538 utils optional clive_0.4.14.orig.tar.gz
919cb7ea0051cf6f60d0d533cf9f9966 3373 utils optional clive_0.4.14-1.diff.gz
124093a35c95540fc5b3bf17ccdf316c 50052 utils optional clive_0.4.14-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIRE2gB01zfu119ZkRAsZDAJ9KDkktfTULYc8fFUnWZqermYdGGACgnJ6J
fWTR58mDuwJcCyj8HqBZkV0=
=fdJ+
-----END PGP SIGNATURE-----
--- End Message ---