Comments (5)
You can check if your distro has a backport named python2.4-elementtree or
similar.
If not, you can mock "get_categories" so it returns a static dict with pairs
(term, label).
Original comment by tokland
on 5 Oct 2010 at 11:12
from youtube-upload.
Sorry mate, my Python is not that good, I have confirmed I dont have
python2.4-elementtree .
Are you able to give me more info on the mock "get_categories" ?
Original comment by [email protected]
on 5 Oct 2010 at 11:37
from youtube-upload.
I only ever use the Travel category. Can I do something like the below?
@classmethod
def get_categories(cls):
"""Return categories dictionary with pairs (term, label)."""
#def get_pair(element):
# """Return pair (term, label) for a (non-deprecated) XML element."""
# if all(not(str(x.tag).endswith("deprecated")) for x in element.getchildren()):
# return (element.get("term"), element.get("label"))
#xmldata = urllib.urlopen(cls.CATEGORIES_SCHEME).read()
#xml = ElementTree.XML(xmldata)
return ('Travel', 'Travel')
Original comment by [email protected]
on 5 Oct 2010 at 12:35
from youtube-upload.
It expects a dictionary:
return {"Travel": "Travel"}
Original comment by tokland
on 5 Oct 2010 at 1:24
- Changed state: Done
from youtube-upload.
Original comment by tokland
on 13 May 2014 at 2:55
from youtube-upload.
Related Issues (20)
- No Upload on IPv6 HOT 4
- update video and more options HOT 1
- possible support the "Upload a video thumbnail image" function ?? HOT 1
- upload with socks proxy HOT 1
- Bulk upload HOT 2
- Support Resumable Uploads HOT 2
- options HOT 1
- Uploading no longer possible HOT 5
- youtube-upload can't log in when using 2 factor auth HOT 4
- Ability to upload srt subtitles with the video HOT 2
- Upload on a specific channel HOT 1
- How select Creative Commons license for videos instead of the standard YouTube license? HOT 1
- Upload Error HOT 2
- Error: no such option: --email:[email protected] HOT 7
- How to choose which youtube account to upload from? HOT 3
- Auth failed HOT 8
- Upload Thumbnail HOT 1
- Patch for /trunk/youtube_upload/youtube_upload.py HOT 1
- description from file HOT 2
- How to set "Video language", "Monitize" field when upload? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-upload.