danz0l Wrote:Mmmmm one suggestion I have is one folder with channelname_xx.avi files. So if for instance you create a syfy channel and want a logo randomly playing, have
Syfy_01.avi
Syfy_02.avi
Syfy_03.avi
Then have TVTime pick one at random at random times (maybe with a setting to say dont play more than xx in so many hours) between shows. Then you could have a Syfy logo play or perhaps adverts for other shows etc ?
This would be doable. I believe I have all the core components in the code to achieve it.
I'm thinking this is how I would implement it in settings:
I would have separate settings in TV Settings, Movie Settings and Mixed Settings. In TV Settings, there would be separate settings for TV Genre & Network vs TV Shows.
Enable Commercials
Select Folder with Commercials
Frequency of Commercials: After each show, Every other show, Every third show, Every Fourth Show (how many choices do you think we would need?)
Enable Bumpers
Select Folder with Bumpers
Frequency of Bumpers: After each show, Every other show, Every third show, Every Fourth Show (how many choices do you think we would need?)
The Commercials folder would have a bunch of commercials videos in it that are randomly selected.
The Bumpers folder would have the bump files named SyFy_1, SyFy_2, etc. since bumpers are channel specific, e.g. you are watching the SyFy channel.
Then functionality wise, if the "Enable Commercials" is enabled, the code would create an additional fileList for commercials and if the "Enable Bumpers" is enabled, it would create an additional filelist for the bumpers. This is similar to how I create the mixed and tv network channels. The commercials filelist would contain the files selected randomly from the "Folder with Commercials". The bumpers filelist would contain the files matching the channel name prefix, so SyFy_1, SyFy2, SyFy3, would be added to the bumpers filelist when building the SyFy channel. As shows are being added to the final channel filelist, the code would pick a random commercial file and/or random bumper file from the filelists and add it in based on the "Frequency of Commercials" and "Frequency of Bumpers" setting.
For example: SyFy Channel
SyFy FileLists:
- Caprica FileList
- Battlestar Galactica FileList
- Eureka FileList
- Sanctuary FileList
- Commercials FileList
- Bumpers FileList
Get Caprica Episode from Caprica FileList
If "Frequency of Bumpers" = 1 (after each show):
Get random bumper from Bumpers FileList
If "Frequency of Commercials" = 1 (after each show):
Get random commercial from Commercials FileList
Get Battlestar Galactica Episode from Battlestar Galactica FileList
If "Frequency of Bumpers" = 1 (after each show):
Get random bumper from Bumpers FileList
If "Frequency of Commercials" = 1 (after each show):
Get random commercial from Commercials FileList
etc.
So the final FileList would look like:
Caprica Episode
Bumper
Commercial
Battlestar Galactica Episode
Bumper
Commercial
Eureka Episode
Bumper
Commercial
etc.
Does this sound like what you are wanting to do with this?