From: Antonio Ospite Date: Tue, 4 Mar 2014 11:26:47 +0000 (+0100) Subject: Differentiate better between url, manifest_url and base_url X-Git-Url: https://git.ao2.it/smooth-dl.git/commitdiff_plain/671bc7755936cc430340a953bc726f112f42d57a?ds=sidebyside Differentiate better between url, manifest_url and base_url --- 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('