X-Git-Url: https://git.ao2.it/smooth-dl.git/blobdiff_plain/9bae22079909dbca77e3244df6c53575c9be07d8..671bc7755936cc430340a953bc726f112f42d57a:/smooth-dl.py 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('