From 671bc7755936cc430340a953bc726f112f42d57a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 4 Mar 2014 12:26:47 +0100 Subject: [PATCH] Differentiate better between url, manifest_url and base_url --- smooth-dl.py | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/smooth-dl.py b/smooth-dl.py index 29115b3..3297102 100755 --- a/smooth-dl.py +++ b/smooth-dl.py @@ -36,12 +36,14 @@ __version = "0.x" __author_info = "Written by Antonio Ospite http://ao2.it" import os +import re import sys import xml.etree.ElementTree as etree import urllib2 import struct import tempfile from optparse import OptionParser +from urlparse import urlparse, urlunparse def get_chunk_data(data): @@ -92,29 +94,32 @@ def write_wav_header(out_file, fmt, codec_private_data, data_len): out_file.write(struct.pack('