Shoutcast Plugin release (1 Viewer)

juvinious

Portal Member
December 20, 2004
43
1
Hong Kong
Shoutcast.jpg

So far this is what I have as you can see on the screenshot.
I'm pretty much done with it, I just need to test it on different configurations.
There is no automation, I might consider adding that later but for now it's testing and getting rid of bugs.

What it does:
Connects to shoutcast and downloads .pls files according to the criteria selected and orders the files in directories or in the default directory.

Just copy the ShoutCast.dll file to your .\plugins\windows\ dir and run the setup in configuration. It'll prompt you for your directory and notify you about creating a confg file. Once you are configured just hit download and it will grab the .pls files. Make sure you hit Save/Exit or else it won't save and you will have to reconfigure later.

Between 5-25 downloads per genre might be considered safe and optimal.
Theoritically you should be able to select all the genres and have a count of 100 per genre to download, however the server will cut you off and you will end up with .pls files containing text saying: "too many requests, try again tommorow". Downloading 100 .pls files for one genre took me 20 minutes to parse the html then another 5 to download the files.

I made this in order to avoid manually downloading .pls files only to know that some change frequently or are no longer valid. This will make the task of retrieving them hassle free.
Retrieve the file here
Any feedback from you guys would greatly be appreciated and will help me to improve this plugin. Thanks.
 

tomtom21000

Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,226
    120
    Germany
    Looks great.
    Looking forward to integration in mp.

    tomtom21000, who is sorry to not have the time to test this for you the next days.
     

    butcherBoy

    Portal Pro
    September 7, 2004
    100
    0
    Germany
    hi!

    nice plug-in! but some questions.
    how did you setup the player? use the music modul and point a folder to the shoutcast directory? btw this works fine!
    and what about the interface? there is only a grey form where i can setup all the stuff. do i have to copy the jpg anywhere?

    and a feature request. what about downloading playlists from within mp or create a scheduled task?

    the butcher
     

    juvinious

    Portal Member
    December 20, 2004
    43
    1
    Hong Kong
    Butcher: Yeah I ran into some issues with that, I fixed the form so that everything is legible instead of just grey. Just redownload it and it should be fine. Yeah it's not intended to be setup with the player, just have mediaportal point to the folder where the .pls files download to. Integration will come later, as it still has some minor issues with downloading 20+ files per genre sometimes. I was thinking more on a scheduler but I'll see what I can do. There are other issues that I need to look at first though. Thanks for the feedback I'll keep working on it and hopefully get it stable enough where I can start work on yahoo launch.
     

    SiLenTYL

    Retired Team Member
  • Premium Supporter
  • April 23, 2004
    1,144
    159
    Melbourne
    Home Country
    Australia Australia
    great dude

    sounds really nice...and a yahoo .asx grabber would be great too

    maybe sometime down the line u can work on others too...like :

    Gamertrailers.com (there are both .MOV and WMV trailers)
    Apple.com quicktime trailers(.MOV)

    i cant seem to download the .ZIP u have posted...just comes up as a .htm and its a blank screen with a popup warning
     

    SiLenTYL

    Retired Team Member
  • Premium Supporter
  • April 23, 2004
    1,144
    159
    Melbourne
    Home Country
    Australia Australia
    sweet the new link works

    thats great work dude !!

    it would be great to get the highest bitrate channels first before the lower ones..but apart from that its great!
     

    juvinious

    Portal Member
    December 20, 2004
    43
    1
    Hong Kong
    I can add bitrate selection that shouldn't be a problem.
    I just updated it right now with more error checking, it shouldn't crash now if any errors are encountered.
    It also checks to see if you exceeded the download limit and if so it tells you to try again later. That way it doesn't download a bunch of .pls files with the text "Too many requests. Try again tomorrow." inside of them, which can be misleading. :? hehe
    I'm also looking into adding the automation now, just don't have much time left today. I'll hopefully have more updates for you guys in a couple of days.
    Thank you two, Silen and butcher, I really appreciate the feedback.
     

    juvinious

    Portal Member
    December 20, 2004
    43
    1
    Hong Kong
    As requested I added bitrate maxlimit and sorting by bitrate. I also added some more error checking in the parser in order to avoid any mishaps which should lend itself to be much more stable. As I am working to get scheduling added I am also going to implement a que so that it polls files and if it reaches the server limit it will continue to poll after a certain time has passed from where it left off.
    Any other ideas or suggestions are welcomed. Thanks again and to the great team behind media portal for doing a great job.

    If you missed the links above you can grab the file:
    Here
     

    Users who are viewing this thread

    Top Bottom