Kodi Community Forum

Full Version: Help on scraping flash video
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,
I'm sorry if this is a stupid question. I've managed to create a simple plugin before, but the video was direct avi link.

This is my first foray into flash links. I want to make a simple video addon to browse the videos from http://www.yearmix.net.

A video embed example from the website:
<script type="text/javascript" src="http://www.yearmix.net/js/embed.js.php?id=2405"></script><noscript><object type="application/x-shockwave-flash" data="http://www.yearmix.net/vimp.swf?playlistmode=media&amp;mediaid=2405&amp;webtv=false&amp;hosturl=http%3A%2F%2Fwww.yearmix.net%2Fflashcomm.php" id="flashcontent_4f15c5131d98b" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="c6a80378-3eb2-47e7-8415-ba1f7cff037e" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="480" height="360" align="middle"><param name="movie" value="http://www.yearmix.net/vimp.swf?playlistmode=media&amp;mediaid=2405&amp;webtv=false&amp;hosturl=http%3A%2F%2Fwww.yearmix.net%2Fflashcomm.php" /><param name="width" value="480" /><param name="height" value="360" /><param name="align" value="middle" /><param name="quality" value="high" /><param name="allowscriptaccess" value="always" /></object></noscript>

What tools/methods do I use to determine the video link that XBMC would use? Once I'm steered in the right direction, I can go from there.

Thanks,
LordIndy
Looks like you can use

http://www.yearmix.net/media/video/$mediaID.flv

where $mediaID is the one you grab for your video. For example in the embed you posted is 2405.

I tested real quick in vlc and it worked. So I am hoping that would work with XBMC too.

P.S: Use wireshark, learn how to use it. It's great.
Excellent tip. Thanks. I've got wireshark..didn't know what to look for.


Cheers,
I did download Wireshark, but just could not figure out know how to use it. Any proper guides somewhere. Their help is not quite simple.