Parameter for youtube link
Closed this issue · 6 comments
GoogleCodeExporter commented
Just wanted to ask if it is possible to get the youtube link from the uploaded
video as a parameter.
I use this uploader in a script, so i get emailed when the video is uploaded.
As I upload the Videos unlisted, I have to go to my Youtube-Page first and then
to the video to change things etc.
Would be cool, if there is any possibility to output the link as a parameter.
Greetz Thomas
Original issue reported on code.google.com by gigazuc...@gmail.com
on 17 Apr 2012 at 8:11
GoogleCodeExporter commented
that's weird, the script always print the link on exit.
Original comment by tokland
on 17 Apr 2012 at 8:19
GoogleCodeExporter commented
Thats right, but If it would give it out as a parameter, it could easily be
integrated in the email.
Here is the part of my script:
videoupload.sh
youtube-upload --email='xxx@gmail.com' --password='xx' --title="$1"
--description="$2" --category="$3" --keywords="$4" --unlisted $5 && sendemail
-f xxx@gmail.com -t xxx@gmail.com -u "Video hochgeladen" -m "Das Video wurde
erfolgreich auf Youtube hochgeladen" -s smtp.googlemail.com:25 -o
username=tommy2181990 -o password='xxx'
the script runs on a debian server, with no gui. it is started as follow:
./videoupload.sh "Videotitle" "description" category "keywords" video.mp4
as soon as the video is uploaded I get the email with the text "Das Video wurde
erfolgreich auf Youtube hochgeladen" but I can't see the link, because the link
is only shown on the server (if i am connected via SSH it perfectly works).
I hope you can understand what my problem is, english isnt my native language ;)
Original comment by gigazuc...@gmail.com
on 17 Apr 2012 at 8:26
GoogleCodeExporter commented
I don't understand "give it out as a parameter". The URL is written to the
standard output, that's the standard, you can do whatever you want with it:
URL=$(youtube-upload ...)
echo "Just uploaded video: $URL"
Original comment by tokland
on 17 Apr 2012 at 8:31
GoogleCodeExporter commented
that might work, i will try it.
Thanks
Original comment by gigazuc...@gmail.com
on 17 Apr 2012 at 8:32
GoogleCodeExporter commented
ok
Original comment by tokland
on 17 Apr 2012 at 8:38
- Changed state: Done
GoogleCodeExporter commented
Original comment by tokland
on 13 May 2014 at 2:55