X-Git-Url: https://git.ao2.it/smooth-dl.git/blobdiff_plain/65b7b56639ca9a2da6042778e9f0ada370b16a01..671bc7755936cc430340a953bc726f112f42d57a:/smooth-dl.py?ds=sidebyside diff --git a/smooth-dl.py b/smooth-dl.py index 16ee966..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,30 +94,32 @@ def write_wav_header(out_file, fmt, codec_private_data, data_len): out_file.write(struct.pack('