From: Elan Ruusamäe Date: Fri, 25 Apr 2008 21:01:43 +0000 (+0000) Subject: - updated patches to 0.4.10 X-Git-Tag: auto/th/clive-0_4_16-1~10 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=f9a33831f50fd607ec6b3e9ddbbbb759fc0dd182;p=packages%2Fclive.git - updated patches to 0.4.10 Changed files: clive-delfi.patch -> 1.4 clive-spz.patch -> 1.2 clive.spec -> 1.20 --- diff --git a/clive-delfi.patch b/clive-delfi.patch index d1560d3..8d358d7 100644 --- a/clive-delfi.patch +++ b/clive-delfi.patch @@ -1,18 +1,18 @@ ---- clive-0.4.3/clive/parse.py~ 2008-01-25 02:37:04.087918332 +0200 -+++ clive-0.4.3/clive/parse.py 2008-01-25 02:37:22.658094354 +0200 +--- clive-0.4.10/src/clive/parse.py~ 2008-04-25 23:53:39.000000000 +0300 ++++ clive-0.4.10/src/clive/parse.py 2008-04-25 23:55:53.000000000 +0300 @@ -50,6 +50,7 @@ - ('guba.com', 'guba', self._parse_guba), - ('stage6.', 'stage6', self._parse_stage6), - ('metacafe.', 'metac', self._parse_metacafe), + ('dailymotion.', 'dmotion', self._parse_dmotion), + ('guba.com', 'guba', self._parse_guba), + ('metacafe.', 'metac', self._parse_metacafe), + ('delfi.', 'delfi', self._parse_delfi), - ] + ] - ## Parses a video page data (HTML). -@@ -184,6 +185,16 @@ + ## Parses a video page data (HTML) +@@ -221,6 +222,16 @@ + url = self._parse_from_to(data, 'mediaURL=', '&', skip_from=1) + return (url, vid, low_quality) - return (url, vid) - -+ def _parse_delfi(self, url, data): ++ def _parse_delfi(self, url, data, low_quality): + text = self._parse_from_to(data, "flv_url:", ",") + try: + url = urllib.unquote(text.replace("'", "").split('flv_url: ',2)[1]) @@ -20,8 +20,8 @@ + pass + + vid = md5.new(str(time.time())).hexdigest()[:8] -+ return (url, vid) ++ return (url, vid, low_quality) + - def _parse_from_to(self, data, _from, to, skip_from=0): - start = data.find(_from) - end = data.find(to, start) + def _random_vid(self): + return md5.new(str(time.time())).hexdigest()[:8] + diff --git a/clive-spz.patch b/clive-spz.patch index 191c721..d115cf2 100644 --- a/clive-spz.patch +++ b/clive-spz.patch @@ -1,26 +1,18 @@ ---- clive-0.4.1/clive/parse.py 2008-01-20 01:24:26.960335855 +0200 -+++ clive-0.4.1-spz/clive/parse.py 2008-01-20 01:23:07.943359159 +0200 -@@ -50,6 +50,7 @@ - ('guba.com', 'guba', self._parse_guba), - ('stage6.', 'stage6', self._parse_stage6), +--- clive-0.4.10/src/clive/parse.py~ 2008-04-25 23:56:56.000000000 +0300 ++++ clive-0.4.10/src/clive/parse.py 2008-04-25 23:59:51.000000000 +0300 +@@ -51,6 +51,7 @@ + ('guba.com', 'guba', self._parse_guba), + ('metacafe.', 'metac', self._parse_metacafe), ('delfi.', 'delfi', self._parse_delfi), + ('www.southparkzone.com', 'southparkzone', self._parse_southparkzone), - ] + ] - ## Parses a video page data (HTML). -@@ -62,6 +63,7 @@ - # \param say A callback function for printing out stdout messages - def parse(self, data, url, opts, callb_query_video_length, say): - self._say = say -+ self._opts = opts - - fmt = formatter.AbstractFormatter(formatter.NullWriter()) - p = HTMLParser(fmt) -@@ -195,6 +197,23 @@ + ## Parses a video page data (HTML) +@@ -232,6 +233,23 @@ vid = md5.new(str(time.time())).hexdigest()[:8] - return (url, vid) + return (url, vid, low_quality) -+ def _parse_southparkzone(self, url, data): ++ def _parse_southparkzone(self, url, data, low_quality): + mirror_id = self._parse_from_to(data, "episodeinfo.php?mirror=", "'") + from urlgrabber.grabber import URLGrabber + from clive.progress import Progress @@ -35,8 +27,8 @@ + url = self._parse_from_to(data, "", skip_from = 1) + + vid = md5.new(str(time.time())).hexdigest()[:8] -+ return (url, vid) ++ return (url, vid, low_quality) + - def _parse_from_to(self, data, _from, to, skip_from=0): - start = data.find(_from) - end = data.find(to, start) + def _random_vid(self): + return md5.new(str(time.time())).hexdigest()[:8] + diff --git a/clive.spec b/clive.spec index e96c9f0..5212d67 100644 --- a/clive.spec +++ b/clive.spec @@ -2,15 +2,14 @@ Summary: Video extraction utility for YouTube and Google Video Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube i Google Video Name: clive Version: 0.4.10 -Release: 0.14 +Release: 0.15 License: GPL v2+ Group: Applications/System Source0: http://dl.sourceforge.net/clive/%{name}-%{version}.tar.bz2 # Source0-md5: f6aec28af6b7794e2c4c833d80c8284a Source1: %{name}-setup.py -Patch0: %{name}-setup.patch -Patch1: %{name}-delfi.patch -Patch2: %{name}-spz.patch +Patch0: %{name}-delfi.patch +Patch1: %{name}-spz.patch URL: http://home.gna.org/clive/ BuildRequires: python-devel >= 1:2.4 BuildRequires: rpm-pythonprov @@ -37,10 +36,8 @@ ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów %prep %setup -q -#%patch0 -p1 -#%patch1 -p1 -#%patch2 -p1 - +%patch0 -p1 +%patch1 -p1 # switch back to python install. we don't need autofoo as we don't build newt cp %{SOURCE1} setup.py