2007-05-03, 12:06 AM
Captain-DJ Wrote:It works !!!Cool.
I have now the Ubustream V2.1
I used the "Podcast" plugin !!!
Quote:I have add an large text directly in the ubustream setup, but i can not scroll the text in gbpvr, is this correctly ?Sorry. You can't scroll the description text currently. I'd like to add that capability for UbuStream v2.2.
Quote: Can i put an image (jpg) or an link to an image on my HD in the PLX file so that i see the text and the image ???I am looking into how to add the ability to display an image for each station. Probably in v2.2
Quote:EDIT: Now i know why the description is not displayed....argh !... the Station name is now xxxxx.plx !The Podcasts DynSource gets the Title and Description fields from the ID3 tag in the file (it assumes a podcast will be an mp3 file). It doesn't populate the Website field. If it can't find the ID3 tag, it uses the file name for the Title field (probably why you're getting funny station names).
So no description and no website will be add to ubustream !
:-(
So the Podcasts DynSource will get you so far but to get the results you really want, you'll need to write a DynSource app that does exactly what you want. For how to do this, read on.
Captain-DJ Wrote:I have read all docs, but i dont know what is to do ! I can write an program to convert an existing file to the plx format. Can i used an existing DynaSource plugin (with switches?) to only transmit this plx file to a Ubustream group...i only need this, the rest i make it myselfIt's actually pretty simple (although probably not quite as simple as you'd like it to be ). Lets assume your program will be called "PlaylistsDynSource.exe".
First, your program needs to check if it has been passed the "-sections" argument. If so, you will write out a PlaylistsSections.plx file, in the format described in the wiki docs. This will include an entry for each group you want UbuStream to create for you. So you could have one section per playlist file or one section for each folder of playlist files. You can either hard code the names or read them from some sort of config file. If you use a config file, it could also contain the path to the playlist file (or folder) associated with each section, which you'll need in the next step.
If your program is called with no arguments (without a -sections argument), you will write a PlaylistsPlaylist.plx file containing all the items you want to import. So you'll need to read each pls file, convert its entries to plx format and add them to the plx file. You'll use the same section names as the ones you wrote to the PlaylistsSections.plx file for the "Section1='' field for each item. (When UbuStream imports the plx file, it will create new stations for each item and will place the stations into the groups with the same name as the item's section entry.)
btw - the naming standard for the program and the files is important. UbuStream will not recognize them if they don't conform to the naming standard (ie. they are not naming "conventions").
If you really want to get ambitious, you could write a Windows form application to allow users to maintain the config file (to add/change sections and file/folder paths). I will be adding a Setup button to the UbuStream config app to support invoking this kind of app in the near future.
Once your DynSource app is working, you can run it automatically by using UbuStream's built in "autosynch at startup" feature which runs it each time you load the plugin or manually by using the AutoSynch button on the UbuStream menu. UbuStream v2.1 includes a separate app, UbuDynSourceUpdate.exe, which you can run from your PostUpdateEPG.bat, if you want to run your program daily, or you can use Windows Scheduler to run it more frequently (see this thread).
As I said, you can use any language to write a DynSource program as long as it does the things I described above. If you are familar with Visual Basic, you can use VB .Net which should allow you to use the common library, DynamicSource.dll, I've provided which takes care of a lot of the heavy lifting (including formatting and writing the plx files). I've attached a copy of the source code for the Podcasts DynSource app (it's written in C# but you should be able to see how you could do a similar thing in VB) to show you how simple this can be.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]
Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]
Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.