General housekeeping, no code modified.
Browse files* Added TODO
* Added AUTHORS
* Moved Licence agreement into COPYING.
AUTHORS
ADDED
File without changes
|
COPYING
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright © 2012 Nick Ficano (http://nickficano.com)
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4 |
+
this software and associated documentation files (the "Software"), to deal in
|
5 |
+
the Software without restriction, including without limitation the rights to
|
6 |
+
use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies
|
7 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8 |
+
so, subject to the following conditions:
|
9 |
+
|
10 |
+
The above copyright notice, and every other copyright notice found in this
|
11 |
+
software, and all the attributions in every file, and this permission notice
|
12 |
+
shall be included in all copies or substantial portions of the Software.
|
13 |
+
|
14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
17 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20 |
+
SOFTWARE.
|
TODO
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
TODO
|
2 |
+
====
|
3 |
+
|
4 |
+
Short Term
|
5 |
+
----------
|
6 |
+
* Reimplement as Abstract Base Class.
|
7 |
+
* Allow an output directory to be specified.
|
8 |
+
* Unbind the filename from the Video class, to allow graceful file renaming.
|
9 |
+
* Throw custom exceptions.
|
10 |
+
* Detect duplicate video encoding options, preventing the creation of identical
|
11 |
+
video class instances. (can cause get() method to raise unnecessary
|
12 |
+
multiple returned excepion).
|
13 |
+
|
14 |
+
Long Term
|
15 |
+
----------
|
16 |
+
* OS Compatibility testing of automatic filename generation.
|
17 |
+
* Improve automatic filename generation.
|
18 |
+
* Add functionality for batch URL processing.
|
19 |
+
* Scrape and inject additional video information into metadata.
|
youtube/youtube.py
CHANGED
@@ -1,26 +1,3 @@
|
|
1 |
-
# Copyright (c) 2012 Nick Ficano.
|
2 |
-
|
3 |
-
# Permission is hereby granted, free of charge, to any person
|
4 |
-
# obtaining a copy of this software and associated documentation
|
5 |
-
# files (the "Software"), to deal in the Software without
|
6 |
-
# restriction, including without limitation the rights to use,
|
7 |
-
# copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8 |
-
# copies of the Software, and to permit persons to whom the
|
9 |
-
# Software is furnished to do so, subject to the following
|
10 |
-
# conditions:
|
11 |
-
|
12 |
-
# The above copyright notice and this permission notice shall be
|
13 |
-
# included in all copies or substantial portions of the Software.
|
14 |
-
|
15 |
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16 |
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17 |
-
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18 |
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19 |
-
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20 |
-
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22 |
-
# OTHER DEALINGS IN THE SOFTWARE.
|
23 |
-
|
24 |
from urllib import urlencode
|
25 |
from urllib2 import urlopen
|
26 |
from urlparse import urlparse, parse_qs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from urllib import urlencode
|
2 |
from urllib2 import urlopen
|
3 |
from urlparse import urlparse, parse_qs
|