1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 07:46:58 -05:00

More String Formatting

This commit is contained in:
deathbybandaid 2021-01-11 08:58:48 -05:00
parent 1f23425be5
commit cd24c5a4fe
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}