Repository: yt-dlp
Issue: [ceskatelevize] allow to download TV series
Labels: site-bug

### Checklist

- [X] I'm requesting a site-specific feature
- [X] I've verified that I'm running yt-dlp version **2022.07.18** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Czech republic

### Example URLs

https://www.ceskatelevize.cz/porady/10177025526-vynalezce-alva/


### Provide a description that is worded well enough to be understood

URL to TV Show with more pages and episodes: https://www.ceskatelevize.cz/porady/10177025526-vynalezce-alva/

It would be nice, if YT DLP can download all TV shows from all page(s).

It has graphQL to get list of TV Shows: https://api.ceskatelevize.cz/graphql/?client=website&version=1.25.0&operationName=GetEpisodes&variables={%22limit%22:40,%22offset%22:0,%22idec%22:%22214543116040006%22,%22orderBy%22:%22oldest%22,%22onlyPlayable%22:false}&extensions={%22persistedQuery%22:{%22version%22:1,%22sha256Hash%22:%224da58f0bf1d9136df1777c1306d37673eae5f28d895f22b54c470624514f1abb%22}}

- `limit` max value is 40
- `offset` starts with 0 or 1 (same result) (can be used to download more episodes after reach `limit` when `totalCount` is bigger)
- `onlyPlayable` - some items are not able to play (time for online playin exceeded, licensed content, etc) in this case TV show is not possible download, to get only playeable items use `true`

Response:
- `totalCount` - total episodes
- `showId` TV Show ID
- `id` - current episode ID
- `showTitle` - TV Show name (same for all episodes)
- `title` - current episode name

Url to current TV show with video is: `https://www.ceskatelevize.cz/porady/[showId]/[id]/`

<details>
  <summary>GraphQL response</summary>
  
```json
{
   "data":{
      "episodesPreviewFind":{
         "totalCount":13,
         "items":[
            {
               "description":"",
               "id":"210552116010001",
               "cardLabels":{
                  "topLeft":null,
                  "center":null,
                  "bottomRight":"10 minut",
                  "__typename":"CardLabels"
               },
               "images":{
                  "card":"https://ctfs.ceskatelevize.cz/ivysimg/program/porady/10177025526/foto/uni_210552116010001.jpg",
                  "__typename":"EpisodeImages"
               },
               "playable":true,
               "showCode":"vynalezce-alva",
               "showId":"10177025526",
               "showTitle":"Vynálezce Alva",
               "title":"Včas ve škole",
               "__typename":"EpisodePreview",
               "lastBroadcast":{
                  "datetime":"2021-09-25T16:45:00.000Z",
                  "channel":"ČT :D",
                  "__typename":"BroadcastListItem"
               }
            },
            {
               "description":"",
               "id":"210552116010002",
               "cardLabels":{
                  "topLeft":null,
                  "center":null,
                  "bottomRight":"10 minut",
                  "__typename":"CardLabels"
               },
               "images":{
                  "card":"https://ctfs.ceskatelevize.cz/ivysimg/program/porady/10177025526/foto/uni_210552116010002.jpg",
                  "__typename":"EpisodeImages"
               },
               "playable":true,
               "showCode":"vynalezce-alva",
               "showId":"10177025526",
               "showTitle":"Vynálezce Alva",
               "title":"Na vykopávkách",
               "__typename":"EpisodePreview",
               "lastBroadcast":{
                  "datetime":"2021-09-26T16:45:00.000Z",
                  "channel":"ČT :D",
                  "__typename":"BroadcastListItem"
               }
            },
            {
               "description":"",
               "id":"210552116010003",
               "cardLabels":{
                  "topLeft":null,
                  "center":null,
                  "bottomRight":"10 minut",
                  "__typename":"CardLabels"
               },
               "images":{
                  "card":"https://ctfs.ceskatelevize.cz/ivysimg/program/porady/10177025526/foto/uni_210552116010003.jpg",
                  "__typename":"EpisodeImages"
               },
               "playable":true,
               "showCode":"vynalezce-alva",
               "showId":"10177025526",
               "showTitle":"Vynálezce Alva",
               "title":"Na farmě",
               "__typename":"EpisodePreview",
               "lastBroadcast":{
                  "datetime":"2021-09-27T16:45:00.000Z",
                  "channel":"ČT :D",
                  "__typename":"BroadcastListItem"
               }
            },
            {
               "description":"",
               "id":"210552116010004",
               "cardLabels":{
                  "topLeft":null,
                  "center":null,
                  "bottomRight":"10 minut",
                  "__typename":"CardLabels"
               },
               "images":{
                  "card":"https://ctfs.ceskatelevize.cz/ivysimg/program/porady/10177025526/foto/uni_210552116010004.jpg",
                  "__typename":"EpisodeImages"
               },
               "playable":true,
               "showCode":"vynalezce-alva",
               "showId":"10177025526",
               "showTitle":"Vynálezce Alva",
               "title":"Vynálezy pro školu",
               "__typename":"EpisodePreview",
               "lastBroadcast":{
                  "datetime":"2021-09-28T16:45:00.000Z",
                  "channel":"ČT :D",
                  "__typename":"BroadcastListItem"
               }
            },
            {
               "description":"",
               "id":"210552116010005",
               "cardLabels":{
                  "topLeft":null,
                  "center":null,
                  "bottomRight":"10 minut",
                  "__typename":"CardLabels"
               },
               "images":{
                  "card":"https://ctfs.ceskatelevize.cz/ivysimg/program/porady/10177025526/foto/uni_210552116010005.jpg",
                  "__typename":"EpisodeImages"
               },
               "playable":true,
               "showCode":"vynalezce-alva",
               "showId":"10177025526",
               "showTitle":"Vynálezce Alva",
               "title":"Na horách",
               "__typename":"EpisodePreview",
               "lastBroadcast":{
                  "datetime":"2021-09-29T16:45:00.000Z",
                  "channel":"ČT :D",
                  "__typename":"BroadcastListItem"
               }
            },
            {
               "description":"",
               "id":"210552116010006",
               "cardLabels":{
                  "topLeft":null,
                  "center":null,
                  "bottomRight":"10 minut",
                  "__typename":"CardLabels"
               },
               "images":{
                  "card":"https://ctfs.ceskatelevize.cz/ivysimg/program/porady/10177025526/foto/uni_210552116010006.jpg",
                  "__typename":"EpisodeImages"
               },
               "playable":true,
               "showCode":"vynalezce-alva",
               "showId":"10177025526",
               "showTitle":"Vynálezce Alva",
               "title":"Na výletě",
               "__typename":"EpisodePreview",
               "lastBroadcast":{
                  "datetime":"2021-09-30T16:45:00.000Z",
                  "channel":"ČT :D",
                  "__typename":"BroadcastListItem"
               }
            }
         ],
         "__typename":"EpisodePreviewResults"
      }
   }
}
```
</details>

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.ceskatelevize.cz/porady/10177025526-vynalezce-alva/']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.07.18 [135f05e] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0.1-essentials_build-www.gyan.dev (setts), ffprobe 5.0.1-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.07.18, Current version: 2022.07.18
yt-dlp is up to date (2022.07.18)
[debug] [CeskaTelevize] Extracting URL: https://www.ceskatelevize.cz/porady/10177025526-vynalezce-alva/
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading webpage
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading webpage
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading webpage
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading JSON metadata
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading JSON metadata
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading MPD manifest
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading JSON metadata
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading JSON metadata
[CeskaTelevize] 10177025526-vynalezce-alva: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[download] Downloading playlist: Vynálezce Alva - iVysílání | Česká televize
[CeskaTelevize] Playlist Vynálezce Alva - iVysílání | Česká televize: Downloading 1 videos of 1
[download] Downloading video 1 of 1
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 61924494877734610: Downloading 1 format(s): dash-main-1001-1506+dash-main-1002-1504
[debug] Invoking dashsegments downloader on "http://ivys-vst10-5.o2tv.cz/atip/43d5f07bb37291a57aa08957f4a3f7d4/1658257325493/61924494877734610-pc.mpd?userId=0fab01bc-bc9d-4753-b242-22e542cbe097"
[dashsegments] Total fragments: 241
[download] Destination: Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].fdash-main-1001-1506.mp4
[debug] File locking is not supported. Proceeding without locking
[download] 100% of 343.43MiB in 01:43
[debug] Invoking dashsegments downloader on "http://ivys-vst10-5.o2tv.cz/atip/43d5f07bb37291a57aa08957f4a3f7d4/1658257325493/61924494877734610-pc.mpd?userId=0fab01bc-bc9d-4753-b242-22e542cbe097"
[dashsegments] Total fragments: 241
[download] Destination: Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].fdash-main-1002-1504.m4a
[download] 100% of 7.54MiB in 00:27
[Merger] Merging formats into "Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].fdash-main-1001-1506.mp4" -i "file:Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].fdash-main-1002-1504.m4a" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].temp.mp4"
Deleting original file Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].fdash-main-1002-1504.m4a (pass -k to keep)
Deleting original file Vynálezce Alva - iVysílání _ Česká televize [61924494877734610].fdash-main-1001-1506.mp4 (pass -k to keep)
[download] Finished downloading playlist: Vynálezce Alva - iVysílání | Česká televize
```