Fix - No drm streams
Fix - History missing episodes not counted correctly
This commit is contained in:
parent
b1964be6b0
commit
fbd16274a6
|
@ -1397,6 +1397,7 @@ public class Crunchyroll{
|
|||
|
||||
private async Task FetchNoDrmPlaybackData(string currentMediaId, PlaybackData pbData){
|
||||
var playbackRequestNonDrm = HttpClientReq.CreateRequestMessage($"https://cr-play-service.prd.crunchyrollsvc.com/v1/{currentMediaId}/console/switch/play", HttpMethod.Get, true, true, null);
|
||||
playbackRequestNonDrm.Headers.UserAgent.ParseAdd("Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27");
|
||||
|
||||
var playbackRequestNonDrmResponse = await HttpClientReq.Instance.SendHttpRequest(playbackRequestNonDrm);
|
||||
|
||||
|
|
|
@ -353,7 +353,12 @@ public class HistorySeries : INotifyPropertyChanged{
|
|||
|
||||
// Iterate over the Episodes from the end to the beginning
|
||||
for (int j = Seasons[i].EpisodesList.Count - 1; j >= 0 && !foundWatched; j--){
|
||||
if (!Seasons[i].EpisodesList[j].WasDownloaded && !Seasons[i].EpisodesList[j].SpecialEpisode){
|
||||
|
||||
if (Seasons[i].EpisodesList[j].SpecialEpisode){
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Seasons[i].EpisodesList[j].WasDownloaded){
|
||||
count++;
|
||||
} else{
|
||||
foundWatched = true;
|
||||
|
@ -376,7 +381,12 @@ public class HistorySeries : INotifyPropertyChanged{
|
|||
|
||||
// Iterate over the Episodes from the end to the beginning
|
||||
for (int j = Seasons[i].EpisodesList.Count - 1; j >= 0 && !foundWatched; j--){
|
||||
if (!Seasons[i].EpisodesList[j].WasDownloaded && !Seasons[i].EpisodesList[j].SpecialEpisode){
|
||||
|
||||
if (Seasons[i].EpisodesList[j].SpecialEpisode){
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Seasons[i].EpisodesList[j].WasDownloaded){
|
||||
//ADD to download queue
|
||||
await Seasons[i].EpisodesList[j].DownloadEpisode();
|
||||
} else{
|
||||
|
|
Loading…
Reference in New Issue