Need help decompiling a swf player
#1
I'm lost Smile

starting url
Code:
[url=http://www.weather.com/outlook/travel/businesstraveler/local/USMI0564?lswe=monroe,%20mi&from=searchbox_localwx]http://www.weather.com/outlook/travel/businesstraveler/local/USMI0564?lswe=monroe,%20mi&from=searchbox_localwx[/url][url=http://www.weather.com/outlook/travel/businesstraveler/local/USMI0564?lswe=monroe,%20mi&from=searchbox_localwx]
[/url]

starting video url http://www.weather.com/multimedia/videop...v_business

here is the final video url
http://v.imwx.com/multimedia/video/wxfla...ffiliateId=

of which only http://v.imwx.com/multimedia/video/wxflash/detroit.flv is needed to play it appears.

it appears the only difference between any of the videos is the .flv filename.

what i can't find is what determines the city name. eg New York is newyorkcity.flv, Portland OR is portlandor.flv and Detroit, MI is detroit.flv

here is the wireshark capture.
http://xbmc-addons.googlecode.com/svn/pa...apture.txt

any help.

thanks
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Nuka1195 Wrote:I'm lost Smile

starting url
Code:
[url=http://www.weather.com/outlook/travel/businesstraveler/local/USMI0564?lswe=monroe,%20mi&from=searchbox_localwx]http://www.weather.com/outlook/travel/businesstraveler/local/USMI0564?lswe=monroe,%20mi&from=searchbox_localwx[/url][url=http://www.weather.com/outlook/travel/businesstraveler/local/USMI0564?lswe=monroe,%20mi&from=searchbox_localwx]
[/url]

starting video url http://www.weather.com/multimedia/videop...v_business

here is the final video url
http://v.imwx.com/multimedia/video/wxfla...ffiliateId=

of which only http://v.imwx.com/multimedia/video/wxflash/detroit.flv is needed to play it appears.

it appears the only difference between any of the videos is the .flv filename.

what i can't find is what determines the city name. eg New York is newyorkcity.flv, Portland OR is portlandor.flv and Detroit, MI is detroit.flv

here is the wireshark capture.
http://xbmc-addons.googlecode.com/svn/pa...apture.txt

any help.

thanks

So...you're trying to determine how the city names are assigned to the videos so you can access them directly?
Reply
#3
exactly.

i guess when people say they decompile the swf player, they use software to do it? I see decompilers online.

maybe any tips on which software and what to look for would help.

unless someone would care to spoonfeed me Smile
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
I guess...I'm wondering, what is the end goal of decompiling the swf player? Are you trying to make a script that gives you the forecast?
Reply
#5
yes, i want to be able to add videos to "twc supplemental" script
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
Well, those streams are always going to be updated for the city, right? So, in theory, you only need to figure out the names of every video/city once?

Edit: It looks like the video names are just "Cityname.flv", unless there are two states with the same city...you'd just have to go down the list and note which ones are dupes...

Only one that should be different are the Portlands. Every other city is unique. Green Bay is just greenbay.flv.
Reply
#7
I have been looking into to this. I can't seem to find where city lists are coming from. i have been looking at the action script for several of the swf files that the original downloads. i was hoping it would be an xml file or something but no such luck so far. I am sick so i am working kinda slow but i will keep looking till i find the answer. surely they're aren't hard coded in the swf files it would be so inflexible for adding new cities.
Reply
#8
I must be missing something...why not just make up a list of the major cities in every state, then just have it insert that cityname in a string and have the script see if the URL returns a file. If not, then have it try it with citynameXX where XX is the state initial. It's gotta be one of those two combinations, and if not, then it doesn't exist.

This assumes, of course, that you can have the script try to download a file and report an error if there is no file there...

To determine the cityname, just have it hit a website or list of zip codes/cities...
Reply
#9
Indeed that is possible but it is mostly curiosity for me. I want to know how it works.

so why not? its more future proof to try to use the method that the swf file uses to get the names and urls rather then simply create database of the cities and videos.

I am also curious about the other videos available on the site and they aren't as simple as city names.
Reply
#10
Thanks to both of you.

BlueCop, don't strain you self, but if you figure it out. that would be great.

digitalhigh, i took what you said earlier and do exactly as you just posted. except i also have to try cityname"city" for newyorkcity.

in the original page there is a code omn_dma_code to find what city you have a local video for. that is in dma_names[code_number]. i then take omn_locstate, for the citynameXX test.

the problem is some cities don't have a local video, but a regional one, where the above doesn't work.

while this works fine for me, i would like it to work for other cities.

so if BlueCop can figure this out, it would be more universal.

thanks again
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#11
Quote:Need help decompiling a swf player

Yeah... no other way to figure this one out unfortunately.
The site uses AMF to talk to the server, which communicates via binary files (as opposed to text based ones like XML), so it is impossible to just use wireshark to look at the requests.

http://osflash.org/documentation/amf

@digitalhigh
the reason it isn't good to just try and then try again is it would take FOREVER. For example lets say we're looking for my home town. It would take four requests before it was found (cityname, citynameXX, citynamecity, region) Try doing four requests from your browser to see how long it takes.

@nuka
if you figure it out or if blueCop comes through for you, a pyAMF module already exists so you can make your requests.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#12
Just downloaded Sothink swf decomp

So let`s see wtf is going on.

Tried wiresharking the damn thing and ended up very annoyed after 1hour.

Will post back if i find anything.
Reply
#13
thanks appreciate it. i just downloaded that software also, but am lost.

if you find anything maybe the steps you took so i can do this myself in the future.

the .swf files it finds, are not the actual weather video, so i don't know how to proceed.

thanks again

rwparris that pyamf is huge, i hope it's not necessary. it also may need element tree. didn't play with it too much.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#14
I gave up and just hacked it in.

there seems to be only us videos and i think i have accounted for all the regions. not fully tested but works well for the most part.

thanks for your help.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#15
Nuka1195 Wrote:rwparris that pyamf is huge, i hope it's not necessary. it also may need element tree. didn't play with it too much.

I didn't actually play with it, I just saw that the site was using AMF and found python already had a module to deal with it. Just wanted to throw you the link in case you found it useful.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply

Logout Mark Read Team Forum Stats Members Help
Need help decompiling a swf player1