Ieatscrayons commented on a Page, Youtube URL Checker  -  May 19, 2014

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)\

http://pastebin.com/9q4fTShY

Any errors please let me know!

play4free2  -  May 20, 2014

@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.

Ieatscrayons  -  May 23, 2014

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.

prashant179  -  May 25, 2014

This EDIT version: work good without any error, i copy link again ~> http://pastebin.com/sFvHJnNd

thanx - Ieatscrayons you share!

play4free2  -  May 28, 2014

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

prashant179  -  May 29, 2014

play4free2 - hello friend i check about you link, my bot also not respond on your link but not get any error i have no idea why not respond on your youtube videos link otherwise script is good work fine... i test more youtube video and work fine

See image:
http://i.imgur.com/yIVSvEG.jpg

play4free2  -  May 29, 2014

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.

Ieatscrayons  -  Jun 04, 2014

I'll see what I can do to escape the [] characters. i can see why that would be a probem since the script uses those as brackets.

Ieatscrayons  -  Jun 06, 2014

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)\

http://pastebin.com/9q4fTShY

Any errors please let me know!

prashant179  -  Jun 06, 2014

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

fred``  -  Sep 24, 2014

i still have problems with some fast pasted urls - especially if http and https mix

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.