xboxscene.org forums

Pages: [1] 2 3

Author Topic: Preview Video Auto Downloader  (Read 262 times)

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Preview Video Auto Downloader
« on: April 02, 2004, 06:55:00 PM »

Very basic stuff, right now only has 2 videos hosted (Prince of Persia and Project Gotham Racing 2)

Context menu item that automatically downloads a preview video for a game.

Not extensively tested.  

Something I noticed is that you can still navigate the menu while the script is running.  Meaning, when you click 'download', and it starts downloading, the 'focus' stays in the context menu.  So while it downloads, you can go out of the system menu.  
An ugly situation, and MXM seems to hang up, but it really doesn't.  Give it a while to finish downloading, then it should work fine.

Benjeremy, can you look into this focus issue, and fix it?



To use the script, put this in your menu.xml
CODE

   
 
 Msgbox "Press a button to start download"
 WEBFILEFETCH c:\vids.xml http://mxm.brokensite.org/vids.xml
 XMLOPEN vidsXML c:\vids.xml
 XMLGetValue vidsXML vidURL !.game?ID=%_GameXBEID%.file
 IF %vidURL% != "" THEN
    WEBFILEFETCH %_GameDir%\MXM_SS.wmv %vidURL%
    ResetMenuCache
    MsgBox "Video downloaded and cache reset.  Reboot to see changes"
 ELSE
    MsgBox "Preview video not found"
 ENDIF
 

   



This post has been edited by geniusalz: Apr 3 2004, 02:56 AM
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Preview Video Auto Downloader
« Reply #1 on: April 02, 2004, 07:56:00 PM »

Neat, but the vids.xml is kinda small don't you think?
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Preview Video Auto Downloader
« Reply #2 on: April 02, 2004, 08:04:00 PM »

As I said, I've only got 2 videos hosted ATM, as a proof of concept, but adding more isn't a problem.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Preview Video Auto Downloader
« Reply #3 on: April 02, 2004, 08:07:00 PM »

It also gives a webfilefetch command not implemented error.  But it still works.  Maybe like that Launchdvd problem

Edit: Now if unrar support was there, we could work with blazed to download vids off his site, and then unrar them.

This post has been edited by geniusalz: Apr 3 2004, 04:09 AM
Logged

unleashx

  • Archived User
  • Hero Member
  • *
  • Posts: 621
Preview Video Auto Downloader
« Reply #4 on: April 02, 2004, 08:27:00 PM »

I'm preparing the sources to Unrar which could handle the newer rar format. This was written by grebulon and sent to me for testing. I'll upload it at xbins within the next few days for other people to use.

Add: I also spoke to BLazed a few weeks back, and he have no qualms about downloading skins/vids from his site. Although there's no limit, I propose that the dashes which uses the service implements the limit. This would encourage people to browse the site. Also, BLazed mentioned that he can't write scripts to list down the available file/videos and the videos don't have any relation to the game ID's either. I was thinking of doing it the hard way, parsing the HTML and get the links but then that wouldn't be too accurate. If somebody can get BLazeD a hand in creating that script to output XML, it would be beneficial to everyone.

This post has been edited by unleashx: Apr 3 2004, 04:32 AM
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Preview Video Auto Downloader
« Reply #5 on: April 02, 2004, 08:05:00 PM »

QUOTE (unleashx @ Apr 3 2004, 12:51 AM)
I'm preparing the sources to Unrar which could handle the newer rar format. This was written by grebulon and sent to me for testing. I'll upload it at xbins within the next few days for other people to use.

That's cool beerchug.gif

Can't really help with the web scripting stuff (never done it before)
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Preview Video Auto Downloader
« Reply #6 on: April 03, 2004, 07:31:00 AM »

That's why I think a new script is in order.

A TitleID Grabber.

It will use the WriteFileLn stuff and print out a list of every XBE on your xbox in the following format;

TitleID=Internal Name
TitleID=Internal Name
TitleID=Internal Name
etc

This way everyone can run it and we can get a massie ID Database.
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
Preview Video Auto Downloader
« Reply #7 on: April 03, 2004, 08:19:00 AM »

QUOTE (unleashx @ Apr 3 2004, 05:51 AM)
Add: I also spoke to BLazed a few weeks back, and he have no qualms about downloading skins/vids from his site. Although there's no limit, I propose that the dashes which uses the service implements the limit. This would encourage people to browse the site. Also, BLazed mentioned that he can't write scripts to list down the available file/videos and the videos don't have any relation to the game ID's either. I was thinking of doing it the hard way, parsing the HTML and get the links but then that wouldn't be too accurate. If somebody can get BLazeD a hand in creating that script to output XML, it would be beneficial to everyone.

well I dont think he wants to change the current xbox-skins.net to a different code base however,  I could load a copy of the board he uses on my local pc and see how it stores the files and the best location for the code to be executed.  

Then a small code tidbit could be written added into his current site that uses the topic with archive/video file name/location written to xml on each upload.


Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Preview Video Auto Downloader
« Reply #8 on: April 03, 2004, 08:42:00 AM »

Shouldn't Context Scripts go in your MXM.xml and not your Menu.xml?
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Preview Video Auto Downloader
« Reply #9 on: April 03, 2004, 08:47:00 AM »

QUOTE (flattspott @ Apr 3 2004, 04:55 PM)
That's why I think a new script is in order.

A TitleID Grabber.

It will use the WriteFileLn stuff and print out a list of every XBE on your xbox in the following format;

TitleID=Internal Name
TitleID=Internal Name
TitleID=Internal Name
etc

This way everyone can run it and we can get a massie ID Database.

Well there's a load of games like this in the x-link forum... but this would be great for me. I will post all my games xbe ids when I have finished adding them to the xbox, one question though. If i have changed the default.xbe name by using xbe renamer will this change the title ID?
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Preview Video Auto Downloader
« Reply #10 on: April 03, 2004, 09:01:00 AM »

No the Title ID is hard coded I believe.
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
Preview Video Auto Downloader
« Reply #11 on: April 03, 2004, 09:25:00 AM »

what if I made a page on AXS to accept cache_menu.xml's(uploaded) and let it parse the xml into a  single database/xml with the xbeid and game name?  would that be of any help?
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Preview Video Auto Downloader
« Reply #12 on: April 03, 2004, 09:29:00 AM »

IMO that would be less hassle than installing and running a script for the end user, but it will probably mean more work for you.
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
Preview Video Auto Downloader
« Reply #13 on: April 03, 2004, 09:31:00 AM »

only the intial setup,  which would be quite simple actually.  
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Preview Video Auto Downloader
« Reply #14 on: April 03, 2004, 08:57:00 AM »

Alright then, let's see it smile.gif
Logged
Pages: [1] 2 3