Skip to content

Commit

Permalink
Fix: Update "isTimeShifting" dictionary data (on new channel tuning, …
Browse files Browse the repository at this point in the history
…without stopping the timeshift)
  • Loading branch information
Romank1 authored and margro committed Oct 15, 2015
1 parent 87574c8 commit 6a32186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TVServerKodi/TV/ServerInterface.cs
Expand Up @@ -102,6 +102,7 @@ public TvResult StartTimeShifting(int idChannel, ref string rtspURL, ref string

try
{
isTimeShifting.Remove(user.Name); // Remove user with old timeshift data (on new channel tuning, without stopping the timeshift)
isTimeShifting.Add(user.Name, new TimeShiftURLs { RTSPUrl = rtspURL, TimeShiftFileName = timeshiftfilename });
}
catch { }
Expand Down Expand Up @@ -191,6 +192,7 @@ public bool IsTimeShifting(ref IUser user)
{ //Found one...
user.CardId = ss.cardId;
user.IdChannel = ss.channelId;
isTimeShifting.Remove(user.Name); // Make sure that the user is not in the dictionary
isTimeShifting.Add(user.Name, new TimeShiftURLs { RTSPUrl = ss.RTSPUrl, TimeShiftFileName = ss.TimeShiftFileName });
TVServerController.userlist[user.Name].CardId = ss.cardId;
TVServerController.userlist[user.Name].IdChannel = ss.channelId;
Expand Down

0 comments on commit 6a32186

Please sign in to comment.