smooth-dl.git
8 years agosmooth-dl.py: fix some pep8 issue
Antonio Ospite [Fri, 15 Jan 2016 09:06:34 +0000 (10:06 +0100)]
smooth-dl.py: fix some pep8 issue

  smooth-dl.py:38:1: E402 module level import not at top of file
  smooth-dl.py:39:1: E402 module level import not at top of file
  smooth-dl.py:40:1: E402 module level import not at top of file
  smooth-dl.py:41:1: E402 module level import not at top of file
  smooth-dl.py:42:1: E402 module level import not at top of file
  smooth-dl.py:43:1: E402 module level import not at top of file
  smooth-dl.py:44:1: E402 module level import not at top of file
  smooth-dl.py:45:1: E402 module level import not at top of file
  smooth-dl.py:46:1: E402 module level import not at top of file
  smooth-dl.py:57:5: E265 block comment should start with '# '
  smooth-dl.py:96:1: E302 expected 2 blank lines, found 1
  smooth-dl.py:111:1: E302 expected 2 blank lines, found 1
  smooth-dl.py:173:25: E128 continuation line under-indented for visual indent
  smooth-dl.py:195:80: E501 line too long (84 > 79 characters)
  smooth-dl.py:246:9: E128 continuation line under-indented for visual indent
  smooth-dl.py:248:24: E711 comparison to None should be 'if cond is None:'
  smooth-dl.py:320:13: E127 continuation line over-indented for visual indent
  smooth-dl.py:333:9: E128 continuation line under-indented for visual indent
  smooth-dl.py:334:9: E128 continuation line under-indented for visual indent
  smooth-dl.py:335:9: E128 continuation line under-indented for visual indent
  smooth-dl.py:336:9: E128 continuation line under-indented for visual indent
  smooth-dl.py:338:23: E711 comparison to None should be 'if cond is None:'
  smooth-dl.py:343:21: E128 continuation line under-indented for visual indent
  smooth-dl.py:345:21: E128 continuation line under-indented for visual indent
  smooth-dl.py:351:17: E128 continuation line under-indented for visual indent
  smooth-dl.py:353:17: E128 continuation line under-indented for visual indent
  smooth-dl.py:355:9: E265 block comment should start with '# '
  smooth-dl.py:358:17: E128 continuation line under-indented for visual indent
  smooth-dl.py:363:23: E128 continuation line under-indented for visual indent
  smooth-dl.py:364:23: E128 continuation line under-indented for visual indent
  smooth-dl.py:374:13: E128 continuation line under-indented for visual indent
  smooth-dl.py:426:17: E128 continuation line under-indented for visual indent
  smooth-dl.py:427:17: E128 continuation line under-indented for visual indent
  smooth-dl.py:437:13: E128 continuation line under-indented for visual indent
  smooth-dl.py:438:13: E128 continuation line under-indented for visual indent
  smooth-dl.py:439:13: E128 continuation line under-indented for visual indent

8 years agosmmoth-dl.py: if there is a Clip element use its manifest
Antonio Ospite [Thu, 14 Jan 2016 17:13:05 +0000 (18:13 +0100)]
smmoth-dl.py: if there is a Clip element use its manifest

8 years agosmooth-dl.py: use more specific exception when looking for the Clip element
Antonio Ospite [Thu, 14 Jan 2016 17:12:18 +0000 (18:12 +0100)]
smooth-dl.py: use more specific exception when looking for the Clip element

8 years agosmooth-dl.py: factor out a download_file() function
Antonio Ospite [Thu, 14 Jan 2016 17:11:39 +0000 (18:11 +0100)]
smooth-dl.py: factor out a download_file() function

8 years agoDifferentiate better between url, manifest_url and base_url
Antonio Ospite [Tue, 4 Mar 2014 11:26:47 +0000 (12:26 +0100)]
Differentiate better between url, manifest_url and base_url

10 years agoPrint more details when downloading a chunk fails
Antonio Ospite [Tue, 4 Mar 2014 11:24:32 +0000 (12:24 +0100)]
Print more details when downloading a chunk fails

10 years agoSimplify get_manifest() signature
Antonio Ospite [Sat, 19 Oct 2013 10:20:22 +0000 (12:20 +0200)]
Simplify get_manifest() signature

The manifest_file argument is never used, downloading to 'Manifest' is
just fine.

12 years agosmooth-dl: factor out some common code
Antonio Ospite [Fri, 23 Mar 2012 15:32:01 +0000 (16:32 +0100)]
smooth-dl: factor out some common code

get_chunk_quality_string() and get_chunk_name_string() abstract some
code used in multiple places.

12 years agosmooth-dl: handle CustomAttributes in stream quality
Antonio Ospite [Fri, 23 Mar 2012 13:44:16 +0000 (14:44 +0100)]
smooth-dl: handle CustomAttributes in stream quality

Some manifest files can have CustomAttributes elements in the
QualityLevel settings, handle these. For instance on RaiReplay streams
there is a systemLanguage attribute to tell what language the audio
stream is in.

12 years agosmooth-dl: fix a FutureWarning from python 2.7
Antonio Ospite [Fri, 23 Mar 2012 13:42:27 +0000 (14:42 +0100)]
smooth-dl: fix a FutureWarning from python 2.7

./smooth-dl.py:137: FutureWarning: This search is broken in 1.3 and earlier, and will be fixed in a future version.  If you rely on the current behaviour, change it to './/StreamIndex'

12 years agoREADME: mention the "Direct Download Links" Greasemonkey script
Antonio Ospite [Fri, 23 Mar 2012 13:38:48 +0000 (14:38 +0100)]
README: mention the "Direct Download Links" Greasemonkey script

Using "Direct Download Links" is the easiest way to retrieve the
manifest file.

13 years agoInitial version.
Antonio Ospite [Mon, 29 Nov 2010 13:24:20 +0000 (14:24 +0100)]
Initial version.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>