Can YOUTUBE Tags Be Automatically Converted to MEDIA Tags?
- Thread starter A.T.
- Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
20 replies · 3K views
Physics news on Phys.org
Discussion
- 20,002
- 11,119
Actually I'm pretty sure that if you just put the youtube link in the post the system will recognize it and process it. Tag should not be needed any longer.
Yup, the system automatically converts it into a media tag for you. Just pas the URL in the editor.
fyi, in the next few days I'll be converting all the old tags
Yup, the system automatically converts it into a media tag for you. Just pas the URL in the editor.
fyi, in the next few days I'll be converting all the old tags
Staff Emeritus
Science Advisor
Homework Helper
2025 Award
- 16,110
- 8,516
A.T. said:I was also wondering how the software knows which of the now several possible video-sites to use, given that the MEDIA tag only contains the video ID.
When you use the "Media" button in the editor, the dialog asks you to enter the URL, not just the video ID. The software apparently then recognizes the site from the URL, and picks out the video ID accordingly. If you quote Greg's post, you'll see that the opening tag for the video says "MEDIA=youtube".
- 20,002
- 11,119
btw, I really messed up the old youtube bbcode conversion. It will take me a couple days to fix now. Please remain patient.
- 20,002
- 11,119
Well this was a lesson for me. I spent 5 hours on this. I can only fix about half of the youtube links.
DataGG
Gold Member
- 157
- 22
Greg Bernhardt said:Well this was a lesson for me. I spent 5 hours on this. I can only fix about half of the youtube links.
Fix the half about cats please.
Evo
Staff Emeritus
- 24,114
- 3,277
Can I help? Or is this beyond help? (save the kittehs)
- 20,002
- 11,119
Thanks, but there are thousands to fix. I have to do it by use of regular expressions and that is tricky in this instance.Evo said:Can I help? Or is this beyond help? (save the kittehs)
- 20,002
- 11,119
fyi, the auto embed will work with videos from: dailymotion, facebook, liveleak, metacafe, vimeo, youtube
Evo
Staff Emeritus
- 24,114
- 3,277
You poor thing.
- 20,002
- 11,119
You are very correct and my first regular expression attempt messed things up further. I'm really surprised I haven't nuked PF yet in 13 years lol. Just kidding guys, I have everything under perfect control :DBorek said:My guess is he made himself poor with some hasty SQL command ;)
Or am I wrong, Greg?
edit: actually I think I have had to restore from a backup, but it was a long time ago
- 20,002
- 11,119
My latest test was very successful. I think can salvage and convert 80% now. The links with the "feature" querystring are tripping me up
Jimmy
- 771
- 38
You need a couple of interns to do the remaining 20% by hand. :D
There's probably a regex that will do it but I probably couldn't figure out. My kung-fu is no good!
There's probably a regex that will do it but I probably couldn't figure out. My kung-fu is no good!
- 20,002
- 11,119
Say... what are you up to this weekend... :DJimmy said:You need a couple of interns to do the remaining 20% by hand. :D
Jimmy
- 771
- 38
Greg Bernhardt said:Say... what are you up to this weekend... :DJimmy said:You need a couple of interns to do the remaining 20% by hand. :D
If you don't mind PF getting nuked then sure... :p
Last edited: