2014-10-16, 20:49
(2014-10-16, 19:34)peglegtv Wrote:(2014-10-16, 15:19)japes Wrote:(2014-10-16, 01:56)peglegtv Wrote: Luna i like your idea for swapping the playlist out,
but for the movies i don't want them in the library all year round, i feel it clutters things up when i know we wont watch them through out the year, but i like the simplicity of swapping the playlist for Christmas Episodes ill have to figure out what channel I'm Willing to swap and then ill also want to swap out my logos for that channel but that i can do with .bat so we're golden there,
I add a custom genre for my seasonal movies and then have my main movie smart playlist filter out the kids movies and all the seasonal stuff so it doesn't show up in the regular list. I then make smart playlist for Christmas, Halloween and other seasonal stuff.
You can then copy these smart playlist and rename them to the season.xps and swap them in your channel. Your .bat file could copy in your logo and the season list all in one go and you should be set.
ya, last night I tested swapping out the playlist and it only works if i do a "force channel reset" which is closer but I know i can get it fully automated, so now I'm trying to figure out how to use a batch file to edit the settings.xml line
Code:<setting id="ForceChannelReset" value="false" />
to
Code:<setting id="ForceChannelReset" value="true" />
so that i don't have to remember to do the reset each time
thanks for all the help
Try this:
Code:
@echo OFF
@setlocal ENABLEDELAYEDEXPANSION
set fileName=settings2.xml
if exist %fileName%.tmp del /F /Q %fileName%.tmp
for /F "delims=" %%G in (%fileName%) do (
set LINE=%%G
if not "!LINE!" == "!LINE:ForceChannelReset=!" (
set LINE=!LINE:False=True!
)
>> "%fileName%.tmp" echo !LINE!
)
del /F /Q %fileName%
ren %fileName%.tmp %fileName%
@endlocal