Bug Fix: XtreamCodes EPG has_archive field now returns integer 0 instead of string "0" for proper JSON type consistency

This commit is contained in:
SergeantPanda 2025-12-19 18:39:43 -06:00
parent 05b62c22ad
commit ee183a9f75
2 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Fixed
- XtreamCodes EPG `has_archive` field now returns integer `0` instead of string `"0"` for proper JSON type consistency
## [0.15.0] - 2025-12-20 ## [0.15.0] - 2025-12-20
### Added ### Added

View file

@ -2326,7 +2326,7 @@ def xc_get_epg(request, user, short=False):
if short == False: if short == False:
program_output["now_playing"] = 1 if start <= django_timezone.now() <= end else 0 program_output["now_playing"] = 1 if start <= django_timezone.now() <= end else 0
program_output["has_archive"] = "0" program_output["has_archive"] = 0
output['epg_listings'].append(program_output) output['epg_listings'].append(program_output)