I've modified this script with bits from RaZ's script to include length and format it to a human readable format, here's the pastebin for anyone that's interested (thanks RaZ and Fordlawnmower!!)
http://pastebin.com/LR41DzFs(OLD SEE EDIT NOTE)
EDIT: I've updated it to clean the titles of videos, using code from both scripts again; v2 is here:
http://pastebin.com/sFvHJnNd(OLD ALSO PLEASE SEE EDIT:EDIT)
EDIT:EDIT:
i've escaped the characters and more. Also enabled turning off of certain things in the output. Also enabled logging the output in the partyline(be default everything is on logging too, read the conf options at the top)\
Any errors please let me know!
Have you by chance tried the v2 version of the modifications i made? I'll look at it later this weekend and see if I cant fix it. I can't say that I've tried any youtube urls with quotes in it.
EDIT: Just tried using v2 of the script and it seems that both ' and " work correctly. I did notice that & still comes up as & in the uploader field. That'll be fixed soon. But play4free2 if you would send me the videos that break the script and a copy of the error that it sends to the partyline maybe i can diagnose the issue better.
This EDIT version: work good without any error, i copy link again ~> http://pastebin.com/sFvHJnNd
thanx - Ieatscrayons you share!
I just reloaded the the same version I tried before from this link: http://pastebin.com/sFvHJnNd
This is the Youtube link: https://www.youtube.com/watch?v=kHue-HaXXzg&list=PLDcnymzs18LXX8I3ERVq0cgWnHE5ARBRc
This is the error I got: [20:14:27] Tcl error [youtubesurl]: invalid command name "Official"
Hope that helps
See image:
http://i.imgur.com/yIVSvEG.jpg
I just looked closer it seems the error is kinda the same as I had with a shoutcast.tcl I use, any songs with Brackets like these [ ] would always not put the correct response to the channel or would not put any response at all. Another coder friend of mine had to fix it. If you look at the error I get from the bot, invalid command name "Official" The title has [Official] in it.
thankyou #leatscrayons you fix this problem now this work like charm without any error
mate #play4free2 you put Youtube link: https://www.youtube.com/watch?v=kHue-HaXXzg&list=PLDcnymzs18LXX8I3ERVq0cgWnHE5ARBRc
on comment, now i'm check it work like charm
See Image - http://i.imgur.com/XQzdHDi.jpg
@Ieatscrayons I updated to Fords when I saw my bot wasn't working. I decided to give your code a test to see what the length part you added looked like. If the Title has Quotation marks ( "" ) in it the bot don't display anything to the channel and throws an error in dcc chat. Sorry I didn't keep a copy of the error or I would post it. I just reloaded Ford's copy.