1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 15:26:57 -05:00

Merge pull request #125 from deathbybandaid/dev

More String Formatting
This commit is contained in:
Deathbybandaid 2021-01-11 09:24:51 -05:00 committed by GitHub
commit 404f44c22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -109,8 +109,8 @@ class tvtvEPG():
def get_cached(self, dates_to_pull):
for datesdict in dates_to_pull:
starttime = str(datesdict["start"]) + "T00%3A00%3A00.000Z"
stoptime = str(datesdict["stop"]) + "T00%3A00%3A00.000Z"
starttime = "%s%s" % (datesdict["start"], "T00%3A00%3A00.000Z")
stoptime = "%s%s" % (datesdict["stop"], "T00%3A00%3A00.000Z")
url = "https://www.tvtv.us/tvm/t/tv/v4/lineups/%s/listings/grid?start=%s&end=%s" % (self.lineup_id, starttime, stoptime)
self.get_cached_item(str(datesdict["start"]), url)
cache_list = self.fhdhr.db.get_cacheitem_value("cache_list", "epg_cache", "tvtv") or []

View File

@ -56,7 +56,7 @@ class OriginChannels():
self.fhdhr.config.dict["origin"]["address"],
str(self.fhdhr.config.dict["origin"]["port"]),
str(chandict["origin_id"]),
"fhdhr_" + str(chandict["origin_number"]),
"fhdhr_%s" % chandict["origin_number"],
))
stream_info = {"url": streamurl}