[OLD/CLOSED] PseudoTV Live - Set-Top box solution
(2014-10-16, 21:38)Lunatixz Wrote:
(2014-10-16, 21:00)peglegtv Wrote:
(2014-10-16, 20:49)peppy6582 Wrote: 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

worked great, noticed it was set to settings2.xml had to change that to settings.xml (I just figured it out with autohotkey as well but i'll stick with batch file) heres the fixed version in case someone else wants to use it

Code:
@echo OFF
@setlocal ENABLEDELAYEDEXPANSION
set fileName=settings.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

Thanks for the help

Not sure this is a good move. U r forcing a rebuild of all channels just to update one? Use the advanced rule to reset the single channel.


wow! i cant believe i didn't see that "reset every x days" before, I didn't think to look at the advanced rules for the individual channels for a reset

i like the idea of just resetting the one individual channel,

if i set the "Reset every x Days" to 365 would that channel still get reset when all the other channels get reset or would that stop the channel from being reset with all the other channels when doing a force channel reset?

the further into this i get the more ideas i get Big Grin like a now playing widget (showing random Episodes or Movies) then you could click the movie or episode in the widget and it would launch PTVL to the channel that that movie or episode would play on (it's definitely beyond me but thought it would be a cool idea)

sorry for blowing up the forum for the same idea but i see now that i can fully automate thisRofl. i just need to know more about the way it works to decide which way to go

Thanks

::::EDIT::::
thanks for the warning: i understand if i edit the settings2.xml i carry the risk of breaking my setup, if i do go that route then ill make sure that i create a personal backup or create a daily/weekly/monthly mirror backup of the file to make sure i can undo any damage i may cause

thanks


Messages In This Thread
RE: [FORK] - by jcaa6479 - 2013-07-16, 23:25
Re: RE: - by bry - 2013-07-19, 08:42
Audio Muting Consistently ? - by gjwAudio - 2013-08-18, 08:25
PTVL Anomalies... - by gjwAudio - 2013-08-25, 01:15
Help Find The BAD Channel... - by gjwAudio - 2013-08-27, 02:12
RE: - by DLWhittet - 2013-10-13, 02:48
Problems with Pseudo TV Live - by media-mogul - 2013-11-07, 22:45
Setup wifi cam stream - by rebelmaveric19 - 2013-12-12, 00:54
Black Screen - by Antisthenes - 2014-03-03, 02:06
RE: [FORK] - by Lunatixz - 2014-03-25, 18:21
Re: RE: - by Lunatixz - 2014-04-26, 17:10
Update breaks autostart? - by grumpygamer - 2014-07-12, 11:48
Re: RE: Update breaks autostart? - by bry - 2014-07-12, 13:44
PseudoTV Live + HDHomerun Tutorial - by bry - 2014-07-25, 23:17
RE: [FORK] - by tromy - 2014-09-22, 19:14
RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - by peglegtv - 2014-10-16, 23:46
Custom Live Channel - by GavinCampbell - 2014-11-01, 18:20
Options menu? - by Pendragon445 - 2014-11-02, 20:23
Prevent Stop Button - by GavinCampbell - 2014-11-13, 22:45
RE: [FORK] - by herpkektop - 2015-02-11, 11:22
RE: [FORK] - by herpkektop - 2015-02-11, 17:55
PseudoTv issue - by adamp237 - 2015-03-02, 03:41
No Guide - Android Arm - by MoRbIdBoY - 2015-03-14, 20:26
Chanel Issues - by BlueKalel - 2015-05-03, 07:23
RE: donation - by gkithes - 2015-06-11, 02:27
RE: donation - by bornagainpenguin - 2015-06-11, 03:55
Channel Sharing Feature Freezing - by RORO-RR - 2015-07-11, 18:48
Logout Mark Read Team Forum Stats Members Help
[OLD/CLOSED] PseudoTV Live - Set-Top box solution45