@@ -136,6 +136,7 @@ private static string GetEpisodeEntry(UriBuilder uri, IShokoSeries series, IShok
136
136
var episodeNumber = episode . Type is EpisodeType . Episode
137
137
? episode . EpisodeNumber . ToString ( )
138
138
: $ "{ episode . Type . ToString ( ) [ 0 ] } { episode . EpisodeNumber } ";
139
+ var episodePartNumber = totalParts > 1 ? $ ".{ part } " : string . Empty ;
139
140
var queryString = HttpUtility . ParseQueryString ( string . Empty ) ;
140
141
queryString . Add ( "shokoVersion" , Utils . GetApplicationVersion ( ) ) ;
141
142
@@ -149,10 +150,15 @@ private static string GetEpisodeEntry(UriBuilder uri, IShokoSeries series, IShok
149
150
queryString . Add ( "episodeName" , episode . PreferredTitle ) ;
150
151
queryString . Add ( "epNo" , episodeNumber ) ;
151
152
queryString . Add ( "epCount" , series . EpisodeCounts . Episodes . ToString ( ) ) ;
153
+ if ( totalParts > 1 )
154
+ {
155
+ queryString . Add ( "epNoPart" , part . ToString ( ) ) ;
156
+ queryString . Add ( "epNoPartCount" , totalParts . ToString ( ) ) ;
157
+ }
152
158
queryString . Add ( "restricted" , series . Restricted ? "true" : "false" ) ;
153
159
154
160
uri . Path = $ "{ ( uri . Path . Length > 1 ? uri . Path + "/" : "/" ) } api/v3/File/{ video . ID } /Stream";
155
161
uri . Query = queryString . ToString ( ) ;
156
- return $ "#EXTINF:-1,{ series . PreferredTitle } - { episodeNumber } - { episode . PreferredTitle } { parts } \n { uri } \n ";
162
+ return $ "#EXTINF:-1,{ series . PreferredTitle } - { episodeNumber } { episodePartNumber } - { episode . PreferredTitle } { parts } \n { uri } \n ";
157
163
}
158
164
}
0 commit comments