Move the opener to the YoutubeDL object.
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 22 Nov 2013 18:57:52 +0000 (19:57 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 22 Nov 2013 18:57:52 +0000 (19:57 +0100)
commitdca087205692c934163ec9aca5962056f890cd19
tree476c4fc3e1457d7a080e2ee253b3040ecc1bc4b7
parent0b63aed8dfd36a5a7f5ae6518b9c385d9a43e735
Move the opener to the YoutubeDL object.

This is the first step towards being able to just import youtube_dl and start using it.
Apart from removing global state, this would fix problems like #1805.
youtube_dl/YoutubeDL.py
youtube_dl/__init__.py
youtube_dl/extractor/common.py
youtube_dl/utils.py