So i'm building an automator that takes a youtube url and finds the direct mp4 link. the way I'm building it is as follows:
1-ask for youtube url (works)
2-input youtube id from url into file2hd.com to discover the direct mp4 url (works)
3-get links from the file2hd.com result (something goes wrong)
4-filter links to discard all but the one with the direct mp4 link (incorrect link from #3)
manually this method works fine.
1-i enter a youtube link into:
http://file2hd.com/
2-and get something like this: (sorry for the long url)
http://file2hd.com/Default.aspx?__V...t0a2-OnA&Button1=Get+Files&tos=on&filter=fmov
3-then i right click the .mp4 link and click "copy link" and get something like this:
http://streamerB1.file2hd.com/y.asp...D3E0B1FBDF84DC36A5D0D78B34C051F228F0844&hq=18
this mp4 url works great and downloads when clicked.
when i try this method using automator, i get this as the mp4 url:
http://streamerB1.file2hd.com/y.asp...C2D7C7A910BE7FC8DD3F7A76E172200E2758959&hq=18
as you can tell, its slightly different than when done manually without automator. this link brings me back to file2hd.com when clicked instead of downloading an mp4 file like it should.
I don't know why this is happening. could it be file2hd.com detecting a robot? any help would be great. thanks!
1-ask for youtube url (works)
2-input youtube id from url into file2hd.com to discover the direct mp4 url (works)
3-get links from the file2hd.com result (something goes wrong)
4-filter links to discard all but the one with the direct mp4 link (incorrect link from #3)
manually this method works fine.
1-i enter a youtube link into:
http://file2hd.com/
2-and get something like this: (sorry for the long url)
http://file2hd.com/Default.aspx?__V...t0a2-OnA&Button1=Get+Files&tos=on&filter=fmov
3-then i right click the .mp4 link and click "copy link" and get something like this:
http://streamerB1.file2hd.com/y.asp...D3E0B1FBDF84DC36A5D0D78B34C051F228F0844&hq=18
this mp4 url works great and downloads when clicked.
when i try this method using automator, i get this as the mp4 url:
http://streamerB1.file2hd.com/y.asp...C2D7C7A910BE7FC8DD3F7A76E172200E2758959&hq=18
as you can tell, its slightly different than when done manually without automator. this link brings me back to file2hd.com when clicked instead of downloading an mp4 file like it should.
I don't know why this is happening. could it be file2hd.com detecting a robot? any help would be great. thanks!