Beta Sling
(2020-07-12, 23:55)feerlessleadr Wrote:
(2020-07-12, 23:08)lasers Wrote: I was able to work around the above issue by disabling the VOD service in settings.xml.

I'm also noticing every time I reboot, IPTV simple loses the EPG/channel information. It still is present in the sqlite database though...
I would have expected that it would fallback to cache if the slinger service fails. For whatever reason when IPTV-simple requests the m3u or xml file, it's blank.

Glad I'm not the only one. Mind sharing what you modified in the settings.xml to disable?

Thanks
I was able to figure this out. The error happens with the Amazing Mysteries show because the JSON blob is using a key that the show.py script isn't expecting within 'thumbnail'.

Here is an Amazing Mysteries episode that is being parsed: 
{
    "airings": [{
        "ratings": [
            "US_MPAA_UR"
        ],
        "_href": "http://cbd46b77.cdn.cms.movetv.com/cms/publish3/asset/info/e57c565f7ebe44849e323ba6dd23deb8.json",
        "title": "Amazing Mysteries",
        "program_id": 2168738,
        "source_id": 1442,
        "vendor_content_id": "LLVAL014MAG_Bonus",
        "has_blackouts": false,
        "duration": 2909.01,
        "external_id": "e57c565f7ebe44849e323ba6dd23deb8",
        "availability": [{
                "channel_id": 1885,
                "channel_guid": "246b3ad254b34b0498682688d8fab675",
                "stop": "2030-07-11T03:59:00Z",
                "start": "2020-03-16T04:01:00Z",
                "availability_type": "svod",
                "qvt": "http://cbd46b77.cdn.cms.movetv.com/cms/publish3/entitlement/asset/efc89fb7371e4bfe9968495e6a684d50/e57c565f7ebe44849e323ba6dd23deb8.qvt"
            },
            {
                "channel_id": 1885,
                "channel_guid": "246b3ad254b34b0498682688d8fab675",
                "stop": "2030-07-11T03:59:00Z",
                "start": "2020-03-16T04:01:00Z",
                "availability_type": "svod",
                "qvt": "http://cbd46b77.cdn.cms.movetv.com/cms/publish3/entitlement/asset/2b51540c9ed84863804a037e73d940c6/e57c565f7ebe44849e323ba6dd23deb8.qvt"
            }
        ],
        "airing_id": 43933715
    }],
    "ratings": [
        "US_MPAA_UR"
    ],
    "background_image": {
        "url": "http://p-img.movetv.com/cms/images/bbe93e4711deffaf18e69997eb76f73c76fcf05a.jpg",
        "h": 1080,
        "credit_short": null,
        "w": 1920,
        "credit_full": null
    },
    "guid": "dbb2bfd7ff784a72aa901be16bfa8585",
    "description": "Dinosaurs became extinct 65 million years ago. Was it triggered by an asteroid impact? Global volcanic activity?  A worldwide flood? The fossil records show something different. What really happened?      ",
    "name": "Dinosaur Extinction: What Killed the Dinosaurs?",
    "thumbnail": {
        "url": "http://p-img.movetv.com/cms/images/bbe93e4711deffaf18e69997eb76f73c76fcf05a.jpg",
        "h": 1080,
        "credit_short": null,
        "w": 1920,
        "credit_full": null
    },
    "episode_number": 3,
    "type": "episode",
    "id": 2168738,
    "_href": "http://cbd46b77.cdn.cms.movetv.com/cms/api/programs/dbb2bfd7ff784a72aa901be16bfa8585"
}

Here is a normal JSON blob of a different show/episode: 
{
    "airings": [{
        "ratings": [
            "US_UPR_TV-G"
        ],
        "_href": "http://cbd46b77.cdn.cms.movetv.com/cms/publish3/asset/info/1a41eb1d985641a782a17fe16b9d1756.json",
        "title": "Adopt",
        "program_id": 2505612,
        "source_id": 1603,
        "vendor_content_id": "DOGP0000000000009163",
        "has_blackouts": false,
        "duration": 294.53,
        "external_id": "1a41eb1d985641a782a17fe16b9d1756",
        "availability": [{
                "channel_id": 1467,
                "channel_guid": "de24cb792ce14252860ef3a7e1ab6fad",
                "stop": "2024-05-06T03:59:59Z",
                "start": "2020-05-05T04:01:00Z",
                "availability_type": "svod",
                "qvt": "http://cbd46b77.cdn.cms.movetv.com/cms/publish3/entitlement/asset/6fb84893343d4ee89ebadb45d0c5d605/1a41eb1d985641a782a17fe16b9d1756.qvt"
            },
            {
                "channel_id": 2056,
                "channel_guid": "354260716fd4486d9dd4cd979fb02cac",
                "stop": "2024-05-06T03:59:59Z",
                "start": "2020-05-05T04:01:00Z",
                "availability_type": "svod",
                "qvt": "http://cbd46b77.cdn.cms.movetv.com/cms/publish3/entitlement/asset/d9184b7fece64017b1cb25cf4d246979/1a41eb1d985641a782a17fe16b9d1756.qvt"
            }
        ],
        "airing_id": 49518559
    }],
    "ratings": [
        "US_UPR_TV-G"
    ],
    "background_image": {
        "h": 1440,
        "href": "http://p-img.movetv.com/cms/images/31c326b6eed9d77597dac322221fee7c6035671b.jpg",
        "credit_short": null,
        "w": 2560,
        "credit_full": null
    },
    "guid": "d0e557969fb84b1599a0757cb9ac04d4",
    "description": "DOGTV is working with rescues across the US to get dogs adopted. Adopt a dog now and get a great adoption kit. Season 2 episode 23",
    "name": "Adopt S02E23",
    "thumbnail": {
        "h": 1440,
        "href": "http://p-img.movetv.com/cms/images/31c326b6eed9d77597dac322221fee7c6035671b.jpg",
        "credit_short": null,
        "w": 2560,
        "credit_full": null
    },
    "episode_number": 23,
    "type": "episode",
    "id": 2505612,
    "_href": "http://cbd46b77.cdn.cms.movetv.com/cms/api/programs/d0e557969fb84b1599a0757cb9ac04d4"
}

The show.py script expects that the thumbnail section contain the key 'href'. In the broken episode it's 'url'.
I fixed mine by editing the show.py script directly like so:
204     def processEpisode(self, episode, new_season, new_show, episode_query):
205         timestamp = int(time.time())
206         log(json.dumps(episode, indent=4))
207         new_episode = {
208             'GUID': episode['guid'],
209             'ID': int(episode['id']),
210             'Show_GUID': new_show['GUID'],
211             'Season_GUID': new_season['GUID'],
212             'Name': episode['name'],
213             'Number': int(episode['episode_number']) if 'episode_number' in episode else episode['guid'],
214             'Description': '',
215             'Thumbnail': new_season['Thumbnail'],
216             'Poster': new_show['Poster'],
217             'Rating': '',
218             'Start': 0,
219             'Stop': 0,
220             'Duration': 0,
221             'Playlist_URL': '',
222             'infoLabels': {},
223             'infoArt': {}
224         }
225 
226         if 'description' in episode:
227             if episode['description'] is not None:
228                 new_episode['Description'] = episode['description']
229         if 'thumbnail' in episode:
230             if 'url' in episode['thumbnail']:
231                 new_episode['Thumbnail'] = episode['thumbnail']['url']
232             elif episode['thumbnail'] is not None:
233                 new_episode['Thumbnail'] = episode['thumbnail']['href']
234         if 'background_image' in episode:
235             if 'url' in episode['thumbnail']:
236                 new_episode['Poster'] = episode['background_image']['url']
237             elif episode['background_image'] is not None:
238                 new_episode['Poster'] = episode['background_image']['href']
239 
240         for airing in episode['airings']:

I could open a bug report or create a PR but I'm sure there is a better way to fix this...
Reply


Messages In This Thread
Sling - by d21spike - 2020-01-17, 19:30
RE: Sling - by d21spike - 2020-01-18, 15:48
RE: Sling - by mxlance - 2020-01-18, 16:52
RE: Sling - by d21spike - 2020-01-19, 04:41
Sling - by MoreBloodWine - 2020-01-18, 17:07
RE: Sling - by eracknaphobia - 2020-01-18, 21:27
Sling - by MoreBloodWine - 2020-01-18, 21:30
RE: Sling - by usphil - 2020-01-18, 22:26
RE: Sling - by eracknaphobia - 2020-01-19, 01:33
Sling - by MoreBloodWine - 2020-01-19, 04:44
RE: Sling - by bzellinger - 2020-01-19, 14:29
RE: Sling - by d21spike - 2020-01-19, 15:19
RE: Sling - by d21spike - 2020-01-20, 20:04
RE: Sling - by bds3151 - 2020-01-20, 07:53
RE: Sling - by eracknaphobia - 2020-01-20, 15:35
RE: Sling - by bds3151 - 2020-01-20, 17:22
RE: Sling - by clones - 2020-01-29, 01:33
RE: Sling - by d21spike - 2020-01-29, 02:13
RE: Sling - by MoreBloodWine - 2020-01-20, 20:06
RE: Sling - by d21spike - 2020-01-20, 20:17
Sling - by MoreBloodWine - 2020-01-20, 20:27
RE: Sling - by mxlance - 2020-01-20, 23:12
RE: Sling - by eracknaphobia - 2020-01-20, 23:15
RE: Sling - by mxlance - 2020-01-20, 23:27
RE: Sling - by Penbrock - 2020-01-21, 05:49
RE: Sling - by Penbrock - 2020-01-22, 01:26
RE: Sling - by MoreBloodWine - 2020-01-21, 06:34
RE: Sling - by d21spike - 2020-01-21, 17:50
RE: Sling - by mxlance - 2020-01-21, 14:53
RE: Sling - by mxlance - 2020-01-21, 20:56
Sling - by MoreBloodWine - 2020-01-21, 23:26
RE: Sling - by hackthis02 - 2020-01-23, 07:11
RE: Sling - by d21spike - 2020-01-23, 13:13
RE: Sling - by hackthis02 - 2020-01-23, 16:28
RE: Sling - by d21spike - 2020-01-24, 22:53
RE: Sling - by bds3151 - 2020-01-24, 23:38
RE: Sling - by bds3151 - 2020-01-27, 04:26
RE: Sling - by bds3151 - 2020-01-27, 20:33
RE: Sling Buffering - by bds3151 - 2020-01-24, 22:09
RE: Sling Buffering - by bds3151 - 2020-01-24, 23:15
RE: Sling Buffering - by d21spike - 2020-01-28, 16:33
RE: Sling Buffering - by clones - 2020-01-28, 17:01
RE: Sling Buffering - by d21spike - 2020-01-28, 17:35
RE: Sling Buffering - by clones - 2020-01-29, 02:56
RE: Sling Buffering - by d21spike - 2020-01-29, 04:05
RE: Sling Buffering - by clones - 2020-01-29, 15:03
RE: Sling Buffering - by d21spike - 2020-01-29, 15:16
RE: Sling Buffering - by clones - 2020-01-29, 15:59
RE: Sling Buffering - by d21spike - 2020-01-29, 20:11
RE: Sling Buffering - by bds3151 - 2020-01-29, 20:55
RE: Sling Buffering - by bds3151 - 2020-01-29, 21:27
RE: Sling Buffering - by d21spike - 2020-02-03, 17:44
RE: Sling Buffering - by hackthis02 - 2020-02-03, 18:44
RE: Sling Buffering - by d21spike - 2020-02-03, 19:51
RE: Sling Buffering - by bds3151 - 2020-02-05, 17:51
RE: Sling Buffering - by d21spike - 2020-02-05, 22:47
RE: Sling Buffering - by clones - 2020-01-29, 21:33
RE: Sling Buffering - by clones - 2020-01-31, 14:57
RE: Sling Buffering - by bds3151 - 2020-01-28, 20:05
RE: Sling Buffering - by d21spike - 2020-01-28, 20:32
RE: Sling Buffering - by bds3151 - 2020-01-29, 18:18
RE: Sling - by mxlance - 2020-01-25, 18:09
RE: Sling - by clones - 2020-01-26, 02:45
RE: Sling - by clones - 2020-01-26, 20:37
RE: Sling - by clones - 2020-01-26, 22:58
RE: Sling - by mxlance - 2020-01-28, 14:32
RE: Sling - by clones - 2020-01-28, 17:21
RE: Sling - by mxlance - 2020-01-28, 17:47
RE: Sling - by DarrenHill - 2020-01-29, 21:24
RE: Sling - by hackthis02 - 2020-01-30, 05:37
RE: Sling - by hackthis02 - 2020-01-30, 19:14
RE: Sling - by Shaboobala - 2020-01-31, 00:31
RE: Sling - by mxlance - 2020-01-31, 17:55
RE: Sling - by Penbrock - 2020-02-01, 15:30
RE: Sling - by mxlance - 2020-02-01, 15:45
RE: Sling - by d21spike - 2020-02-01, 16:05
RE: Sling - by clones - 2020-02-02, 01:10
RE: Sling - by mxlance - 2020-02-01, 20:11
RE: Sling - by mxlance - 2020-02-02, 03:45
RE: Sling - by clones - 2020-02-02, 06:24
RE: Sling - by emveepee - 2020-02-02, 07:02
RE: Sling - by clones - 2020-02-02, 08:01
RE: Sling - by clones - 2020-02-02, 19:38
RE: Sling - by clones - 2020-02-03, 23:04
RE: Sling - by d21spike - 2020-02-04, 14:45
RE: Sling - by lhassell - 2020-02-14, 23:56
RE: Sling - by emveepee - 2020-02-02, 17:58
RE: Sling - by clones - 2020-02-02, 20:08
RE: Sling - by hackthis02 - 2020-02-03, 06:14
RE: Sling - by mxlance - 2020-02-03, 06:23
RE: Sling - by mxlance - 2020-02-03, 19:01
RE: Sling - by hackthis02 - 2020-02-03, 19:07
RE: Sling - by mxlance - 2020-02-03, 19:19
RE: Sling - by mxlance - 2020-02-03, 20:03
RE: Sling - by d21spike - 2020-02-03, 20:08
RE: Sling - by mxlance - 2020-02-03, 20:39
RE: Sling - by hackthis02 - 2020-02-04, 02:08
RE: Sling - by Smallmountains - 2020-02-04, 04:49
RE: Sling - by lhassell - 2020-02-04, 07:35
RE: Sling - by clones - 2020-02-06, 17:49
RE: Sling - by d21spike - 2020-02-06, 21:00
RE: Sling - by bds3151 - 2020-02-07, 21:14
RE: Sling - by d21spike - 2020-02-08, 04:38
RE: Sling - by bds3151 - 2020-02-08, 05:04
RE: Sling - by d21spike - 2020-02-08, 05:20
RE: Sling - by bds3151 - 2020-02-08, 06:00
RE: Sling - by d21spike - 2020-02-08, 06:05
RE: Sling - by bds3151 - 2020-02-08, 06:18
RE: Sling - by d21spike - 2020-02-08, 06:33
RE: Sling - by bds3151 - 2020-02-08, 06:53
RE: Sling - by bds3151 - 2020-02-08, 07:06
RE: Sling - by snoopyjoe - 2020-02-08, 08:53
Sling - by DarrenHill - 2020-02-08, 10:10
RE: Sling - by bds3151 - 2020-02-08, 15:08
RE: Sling - by DarrenHill - 2020-02-08, 16:40
RE: Sling - by bds3151 - 2020-02-09, 05:10
RE: Sling - by markeymark - 2020-02-09, 22:05
RE: Sling - by clones - 2020-02-10, 02:56
RE: Sling - by d21spike - 2020-02-10, 14:57
RE: Sling - by markeymark - 2020-02-11, 18:20
RE: Sling - by Doctor Eggs - 2020-02-10, 21:53
RE: Sling - by d21spike - 2020-02-10, 22:15
RE: Sling - by Doctor Eggs - 2020-02-11, 04:50
RE: Sling - by d21spike - 2020-02-11, 17:28
RE: Sling - by Doctor Eggs - 2020-02-11, 18:31
RE: Sling - by d21spike - 2020-02-11, 19:30
RE: Sling - by Doctor Eggs - 2020-02-11, 20:46
RE: Sling - by d21spike - 2020-02-11, 21:47
RE: Sling - by Doctor Eggs - 2020-02-11, 22:54
RE: Sling - by Doctor Eggs - 2020-02-12, 04:59
RE: Sling - by snoopyjoe - 2020-02-12, 07:52
RE: Sling - by d21spike - 2020-02-21, 15:22
RE: Sling - by RM4ever - 2020-02-21, 17:52
RE: Sling - by d21spike - 2020-02-21, 18:04
RE: Sling - by clones - 2020-02-13, 15:42
RE: Sling - by clones - 2020-02-14, 22:56
RE: Sling - by z419 - 2020-02-18, 19:10
RE: Sling - by hackthis02 - 2020-04-09, 21:06
RE: Sling - by RM4ever - 2020-02-21, 05:34
RE: Sling - by d21spike - 2020-02-21, 21:02
RE: Sling - by RM4ever - 2020-02-22, 22:11
RE: Sling - by d21spike - 2020-02-24, 17:40
RE: Sling - by Nitzkit - 2020-02-24, 00:44
RE: Sling - by Nitzkit - 2020-02-24, 02:16
Re:Sling - by Smallmountains - 2020-02-25, 03:08
RE: Sling - by d21spike - 2020-02-25, 15:04
RE: Sling - by clones - 2020-02-25, 17:57
RE: Sling - by d21spike - 2020-02-26, 04:07
RE: Sling - by mxlance - 2020-02-25, 18:32
RE: Sling - by d21spike - 2020-02-26, 04:02
RE: Sling - by Doctor Eggs - 2020-02-26, 01:22
RE: Sling - by d21spike - 2020-02-26, 01:33
RE: Sling - by Doctor Eggs - 2020-02-26, 06:10
RE: Sling - by d21spike - 2020-02-26, 14:25
RE: Sling - by snoopyjoe - 2020-02-27, 01:39
RE: Sling - by snoopyjoe - 2020-03-02, 05:12
RE: Sling - by d21spike - 2020-03-09, 13:25
RE: Sling - by d21spike - 2020-03-12, 20:01
RE: Sling - by Penbrock - 2020-03-14, 18:31
RE: Sling - by Penbrock - 2020-03-07, 13:40
RE: Sling - by Doctor Eggs - 2020-03-12, 20:52
RE: Sling - by d21spike - 2020-03-12, 21:11
RE: Sling - by d21spike - 2020-03-12, 21:28
RE: Sling - by snoopyjoe - 2020-03-12, 21:16
RE: Sling - by snoopyjoe - 2020-03-12, 21:48
RE: Sling - by Doctor Eggs - 2020-03-13, 15:11
RE: Sling - by usphil - 2020-03-13, 18:02
RE: Sling - by d21spike - 2020-03-16, 19:27
RE: Sling - by Doctor Eggs - 2020-03-17, 13:17
RE: Sling - by d21spike - 2020-03-17, 13:33
RE: Sling - by usphil - 2020-03-18, 00:34
RE: Sling - by usphil - 2020-03-15, 20:08
RE: Sling - by hackthis02 - 2020-03-19, 20:38
RE: Sling - by d21spike - 2020-03-19, 20:54
RE: Sling - by hackthis02 - 2020-03-19, 23:07
RE: Sling - by d21spike - 2020-03-20, 13:28
RE: Sling - by hackthis02 - 2020-03-25, 08:59
RE: Sling - by d21spike - 2020-03-25, 15:21
RE: Sling - by clones - 2020-03-26, 01:28
RE: Sling - by mikefreeman - 2020-03-27, 21:25
RE: Sling - by clones - 2020-03-28, 17:59
RE: Sling - by d21spike - 2020-04-09, 17:26
RE: Sling - by snoopyjoe - 2020-04-10, 21:57
RE: Sling - by d21spike - 2020-03-26, 14:11
RE: Sling - by snoopyjoe - 2020-04-05, 00:38
RE: Sling - by Penbrock - 2020-04-05, 01:48
RE: Sling - by cimbor - 2020-04-06, 05:20
RE: Sling - by cimbor - 2020-04-12, 05:22
Sling - by MoreBloodWine - 2020-04-12, 06:33
RE: Sling - by Doctor Eggs - 2020-04-13, 15:01
RE: Sling - by rifken - 2020-05-05, 02:03
RE: Sling - by markeymark - 2020-05-05, 14:43
RE: Sling - by rifken - 2020-05-05, 18:57
RE: Sling - by markeymark - 2020-05-05, 20:57
RE: Sling - by lasers - 2020-07-14, 00:06
RE: Sling - by markeymark - 2020-05-05, 14:44
RE: Sling - by snoopyjoe - 2020-05-05, 19:40
RE: Sling - by lasers - 2020-07-13, 23:22
RE: Sling - by rifken - 2020-05-06, 00:36
RE: Sling - by rifken - 2020-05-06, 00:37
RE: Sling - by mikefreeman - 2020-05-09, 08:03
RE: Sling - by JSAKelley - 2020-06-23, 03:35
RE: Sling - by Doctor Eggs - 2020-06-23, 03:41
RE: Sling - by clones - 2020-07-01, 00:31
RE: Sling - by Alizarin - 2020-06-27, 23:24
RE: Sling - by mxlance - 2020-07-01, 15:29
Sling- Auto Start Channel? - by lasakro - 2020-07-01, 22:58
RE: Sling - by feerlessleadr - 2020-07-11, 15:03
RE: Sling - by lasers - 2020-07-12, 20:23
RE: Sling - by lasers - 2020-07-12, 23:08
RE: Sling - by feerlessleadr - 2020-07-12, 23:55
RE: Sling - by lasers - 2020-07-13, 23:34
RE: Sling - by snoopyjoe - 2020-07-15, 19:28
RE: Sling - by lasers - 2020-07-16, 21:33
RE: Sling - by lasers - 2020-07-16, 21:35
RE: Sling - by feerlessleadr - 2020-07-16, 23:30
RE: Sling - by lasers - 2020-07-17, 14:40
RE: Sling - by feerlessleadr - 2020-07-17, 20:20
RE: Sling - by markeymark - 2020-07-14, 11:26
RE: Sling - by hackthis02 - 2020-07-14, 18:33
RE: Sling - by siegel177 - 2020-08-09, 18:54
RE: Sling - by DarrenHill - 2020-07-16, 22:40
RE: Sling - by lasers - 2020-07-27, 15:23
RE: Sling - by lhassell - 2020-07-31, 19:15
RE: Sling - by lhassell - 2020-07-31, 19:23
RE: Sling - by lhassell - 2020-08-07, 18:58
RE: Sling - by lhassell - 2020-08-11, 01:07
RE: Sling - by Doctor Eggs - 2020-08-11, 13:43
RE: Sling - by lhassell - 2020-08-12, 03:20
RE: Sling - by lasers - 2020-08-12, 15:38
RE: Sling - by bzellinger - 2020-08-31, 02:35
RE: Sling - by bzellinger - 2020-09-09, 16:00
RE: Sling - by Doctor Eggs - 2020-08-17, 16:02
RE: Sling - by usphil - 2020-08-20, 07:34
RE: Sling - by Alizarin - 2020-08-23, 00:24
RE: Sling - by Alizarin - 2020-09-07, 01:03
RE: Sling - by hackthis02 - 2020-08-20, 06:38
RE: Sling - by Alizarin - 2020-08-23, 01:16
RE: Sling - by usphil - 2020-09-10, 06:42
RE: Sling - by Doctor Eggs - 2020-09-10, 21:25
RE: Sling - by snoopyjoe - 2020-09-11, 21:59
RE: Sling - by lasers - 14 minutes ago
RE: Sling - by Alizarin - 2020-09-14, 02:46
RE: Sling - by randallspicher - 2020-09-14, 22:53


Logout Mark Read Team Forum Stats Members Help
Sling0
This forum uses Lukasz Tkacz MyBB addons.