Skip to content

Commit

Permalink
Fix bug preventing EPG data from being transferred to Kodi if 'Show D…
Browse files Browse the repository at this point in the history
…RM protected channels in channel lineups' is enabled
  • Loading branch information
djp952 committed Feb 12, 2022
1 parent 747302b commit 0c7b407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pvr.hdhomerundvr/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
v4.8.1 (2022.02.xx)
- Fix HTTP query error messages reporting the multipart/form-data POST operation method as 'get'
- Fix bug preventing HTTP device discovery from completing if a device cannot be contacted
- Fix bug preventing EPG data from being transferred to Kodi if 'Show DRM protected channels in channel lineups' is enabled
- Add a date/time stamp to the end of messages stored in the error log
- Add new "Use HTTP proxy server for discovery operations" Advanced option
- Remove "Disable reporting of active Live TV tuner signal status" Interface option
Expand Down
4 changes: 2 additions & 2 deletions src/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ void enumerate_listings(sqlite3* instance, bool showdrm, int maxdays, enumerate_

// seriesid | title | broadcastid | channelid | starttime | endtime | synopsis | year | iconurl | programtype | genretype | genres | originalairdate | seriesnumber | episodenumber | episodename | isnew | starrating
auto sql = "with allchannels(number) as "
"(select distinct(json_extract(entry.value, '$.GuideNumber')) as number from lineup, json_each(lineup.data) as entry where coalesce(json_extract(entry.value, '$.DRM'), 0) = ?1) "
"(select distinct(json_extract(entry.value, '$.GuideNumber')) as number from lineup, json_each(lineup.data) as entry where nullif(json_extract(entry.value, '$.DRM'), ?1) is null) "
"select listing.seriesid as seriesid, "
"listing.title as title, "
"fnv_hash(encode_channel_id(guide.number), listing.starttime, listing.endtime) as broadcastid, "
Expand Down Expand Up @@ -1718,7 +1718,7 @@ void enumerate_listings(sqlite3* instance, bool showdrm, union channelid channel

// seriesid | title | broadcastid | starttime | endtime | synopsis | year | iconurl | programtype | genretype | genres | originalairdate | seriesnumber | episodenumber | episodename | isnew | starrating
auto sql = "with allchannels(number) as "
"(select distinct(json_extract(entry.value, '$.GuideNumber')) as number from lineup, json_each(lineup.data) as entry where coalesce(json_extract(entry.value, '$.DRM'), 0) = ?1) "
"(select distinct(json_extract(entry.value, '$.GuideNumber')) as number from lineup, json_each(lineup.data) as entry where nullif(json_extract(entry.value, '$.DRM'), ?1) is null) "
"select listing.seriesid as seriesid, "
"listing.title as title, "
"fnv_hash(encode_channel_id(guide.number), listing.starttime, listing.endtime) as broadcastid, "
Expand Down

0 comments on commit 0c7b407

Please sign in to comment.