View Full Version : mp3 download script
bitplane
2004-04-25, 19:42
updated...
irc download script v0.1.4
now it looks pretty, and it's skinnable too! default skin's images are stolen from foood's icons (www.foood.net (http://www.foood.net)) :)
click on "launch.py" to start the script (or to show it if it's hidden)
you can get it here (http://gaz.davidson.users.btopenworld.com/xbmcirc014.rar) for now, i'll upload to the download site when i've added stats and some more gfx
screenshot 1 (http://gaz.davidson.users.btopenworld.com/1.jpg)
screenshot 2 (http://gaz.davidson.users.btopenworld.com/2.jpg)
screenshot 3 (http://gaz.davidson.users.btopenworld.com/3.jpg)
screenshot 4 (http://gaz.davidson.users.btopenworld.com/4.jpg)
todo:
speed calculations
stats (just gotta have stats!)
...suggestions?
that is fantastic, i got it to download a complete song. great work, be nice to see the exit bug fixed.
i believe the fatx character limit is 41.
bitplane
2004-04-26, 08:17
update:
send is currently broken (list, files :()
odd filenames are partly fixed
exit bug fixed (well sort of)
less crashes
still lots to do... :)
snaps:
<snipped>
kaisersose
2004-04-26, 15:53
cool script! anyway of knowing what speed or how much of a song is downloaded?
good work mate! this is gonna be a cracker *http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif
i was looking for a way to make the screen that the script brings up fit my tv better. i'm not sure if its a pal/ntsc thing but at the moment its too big and i can't see the messages that come up at the bottom ( i tried to reconfigure xbmc to make it fit but the rest of the app is thrown out). any ideas anyone?
bitplane
2004-04-27, 15:46
thx for the feedback ppl :)
i'll be writing some more when i get in tonight, but the main priority is to actually make it xbox share the download dir so the script doesnt become a universally despised leeching client like bottler.
i've got the dcc send through nat problem though*- so users will need to set up port forwarding in windows internet connection sharing, there will only mean x sends at once, so i'll have to add queues and all that jazz...
dcc resume is not yet implemented
@kaisersose
i'll add (botch) percentage complete and file size to the next version
@gerner
yep i'm afraid it's a ntsc thing, it was made for my pal telly. i'll make the next version use percentages of the screens width/height so it'll work for every resolution.
gameloader
2004-05-01, 01:26
any news on this?
bitplane
2004-05-02, 23:54
i'm still playing with it. i got dcc sends through ics working, settings are now in a text file, added more gui (settings, search spy) and moved the code around a bit.
i've been camping and my bro's nicked my vcr so i've got nowhere to plug my xbox in. i'll be running a cable downstairs and testing it as soon as my parents go to bed, but for now i'm working on dcc resume :)
expect a new version very soon
if any python gurus are reading this...
i'm looking for a way to exit without closing so it runs in the background until it's activated again, but if i run the same script twice it exits instead. if i add a button to the my music screen, i can't reference any of the other controls to set controlup, down, etc - so it can't be pressed. checking to see if a file exists every second when hidden, deleting it if it exists on startup would be sloppy. catching and canceling shutdown would be a good hack if possible... any ideas?
i'm looking for a way to exit without closing so it runs in the background until it's activated again, but if i run the same script twice it exits instead.not possible. you can run it in the background but it's not possible to activate it again.
if i add a button to the my music screen, i can't reference any of the other controls to set controlup, down, etc - so it can't be pressed known problem, can't do much about it now (will fix it after xbmc 1.0 is released)
bitplane
2004-05-03, 04:40
aww
ah well at least i've got some time to smooth all the bumps out before then.
bitplane
2004-05-03, 20:56
a new version...
download (http://dwl.xboxmediacenter.de/redirect.php?dlid=37) (run "launch.py" to start)
added:
dcc resume (send and recieve)
dcc queues
runs in background (run "launch.py" to open again)
settings screen (doesn't save settings until "quit" is clicked)
fixed:
dcc send through nat (if ports are forwarded)
controls now resize to fit screen
some crashes fixed
read readme.txt for more info
/me wonders over to the submit script page
edgarf28
2004-05-09, 13:26
download links are dead!!! http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wow.gif :( ???
bitplane
2004-05-11, 15:29
download (http://dwl.xboxmediacenter.de/redirect.php?dlid=37) links are fixed... almost ready for another version update, just gotta get foood's (http://www.foood.net) icons in place and mess around with the gui
bitplane
2004-05-21, 23:12
updated again :)
fantastic mate! looks lovely and works well. really like the new layout.
3 suggestions for you, i have little coding know-how so i don't know how hard they are :)
1) add ability to cancel a transfer (deleting mp3 with it).
2) move completed downloads to another folder. e.g. download to e:\ and when complete move the mp3 to e:\music. (to avoid putting incomplete downloads in your music collection).
3) save the list of mp3's being transferred so that incomplete transfers can be resumed the next time the script is started.
bitplane
2004-05-25, 13:47
hi
thanks for the feedback :)
as for the suggestions...
1) easy peasy.. no cancelling uploads tho :p
2) planned, soon
3) hrm, a bit difficult since you're requesting from an actual person in a chat room, they might have chaned nick (doesn't track nicknames atm), they might not be in the channel, you might have changed channels, they might have stopped serving. it's doable, but won't be perfect.
i'm playing with a subtitle downloader atm, so it'll probably be a week or so before my next update.. so hang in there, i've not given up (yet)
i'm playing with a subtitle downloader atm now that is something i really like http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cool.gif
edited: posted support request in support forum - don't want to spam this thread http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif
osocoloso
2004-05-27, 00:40
can you specify an smb share as the destination directory?
bitplane
2004-05-28, 17:37
sorry, no chance at the moment. i suppose i could add the option to copy to a share after downloading, but i'm not adding anything like that until the dir can be shared on irc, which means re-writing the dcc send stuff.
great script....other than the odd freeze up,no problems yet.
would be cool if it was possible to get a list of channels and stuff to download different types of files. (apps/divx/etc.)
first of all, congrats on a great script. however i am having a small problem with it. i am sorry if this has been addressed elsewhere, but i couldn't find it! anyway, it seems that anytime i edit the config file (either manually or via your script) then it won't open the next time i reboot the xbox. if i copy over the original config file, then everything works fine. all i want to do is send my downloaded files to f:\music and change my username. is this a common problem or have i missed something somewhere along the line?
thanks :)
bitplane
2004-07-22, 22:19
this might sound silly, but have you tried launching it a second time?
"launch.py" checks for a temporary file that tells it if the script is already running but is hidden.
if it's there, the file is deleted and the launch script does nothing, otherwise it launches testbot.py.
when testbot is running in the background it checks for the file every 3 seconds and will return to the foreground if it can't find it. unfortunately if you reset the xbox while the script is hidden, the file won't be deleted. so after a reboot when you click "launch.py" it won't do anything the first time.
a workaround would be to add the following lines to the end of autoexec.py (in q:\scripts\)
import os
s = os.getcwd()
s = s[:-1]
if os.path.exists(s + "\\hibernate.txt"):
os.remove(s + "\\hibernate.txt")
hi, thanks for the quick response! i tried looking for that 'hibernate.txt' file, but i couldn't find it. i also added that piece of script to autoexec.py, but i had the same problem when i reboot. i am guessing the problem must be linked to the config file as i can copy in the original file, and then everything will work fine...
it's not a big deal i guess, i will just have to get used to my music being in e:\!