vishnukraj / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 1 forks source link

Ability to modify the title/description of a video #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions

youtube-upload:
python:
python-gdata:

= Describe the steps (including the command you run) that will reproduce
the problem?
Hello

i would like to be able to modify a video previously uploaded, to change the 
description or the title.
Can you add this function ?

thanks a lot

Original issue reported on code.google.com by mad...@gmail.com on 22 Jan 2013 at 12:13

GoogleCodeExporter commented 9 years ago
Sorry, the script focus in upload, it has no edit functionality. Patches 
welcome though.

Original comment by tokland on 22 Jan 2013 at 8:04

GoogleCodeExporter commented 9 years ago
i will take a look later

Original comment by mad...@gmail.com on 22 Jan 2013 at 8:27

GoogleCodeExporter commented 9 years ago
here is the patch.
Only able to change the description
might have made mistake, i'm totally new to python

Original comment by mad...@gmail.com on 24 Jan 2013 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry but this patch makes no sense, you'll need to learn some Python before ;-)

Original comment by tokland on 24 Jan 2013 at 7:11

GoogleCodeExporter commented 9 years ago
can you add a quiet mode too ?

Original comment by mad...@gmail.com on 24 Jan 2013 at 7:12

GoogleCodeExporter commented 9 years ago
no sense ?? it works oO

Original comment by mad...@gmail.com on 24 Jan 2013 at 7:12

GoogleCodeExporter commented 9 years ago
It does not work for me.

File "youtube_upload.py", line 219
    def update_description(self, entry, description):

Note that delete_video_from_playlist was split by your new function.

Also, when creating patches create a full one (-r) from the parent directory of 
the project. Take also care of indentation, no tabs, only spaces.

Original comment by tokland on 24 Jan 2013 at 7:16

GoogleCodeExporter commented 9 years ago
hmmmm i have applied the patch to the versoin 1.7.1, not the svn one... i don't 
have delete_video_from_playlist

Original comment by mad...@gmail.com on 24 Jan 2013 at 9:07

GoogleCodeExporter commented 9 years ago
0.7.1

Original comment by mad...@gmail.com on 24 Jan 2013 at 9:33

GoogleCodeExporter commented 9 years ago
Ok, that makes sense. Patches always against trunk version. Check it out with 
subversion and then send the output of "svn diff". Thanks

Original comment by tokland on 24 Jan 2013 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by mad...@gmail.com on 24 Jan 2013 at 10:03

Attachments:

GoogleCodeExporter commented 9 years ago
Applied in r182, and refactored in r183 (also title is editable). Ideally it 
should be able to update everthing, but it requires some work to do the update 
properly, probably reusing _create_video_entry.

For now, title and description are updateable. Note also that the URL is a 
positional argument now, not the value of the option.

Original comment by tokland on 25 Jan 2013 at 5:57

GoogleCodeExporter commented 9 years ago
thanks

Original comment by mad...@gmail.com on 25 Jan 2013 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 13 May 2014 at 2:55