Skip to content

Commit ac7c2b1

Browse files
committed
movistar_u7d.py & movistar_epg.py: bad idea to initialize dicts being
all the same empty {}, it is only one Signed-off-by: Javier Marcet <[email protected]>
1 parent a74a23d commit ac7c2b1

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

movistar_epg.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,18 @@
7575
"datefmt"
7676
] = "[%Y-%m-%d %H:%M:%S]"
7777

78-
_CHANNELS = _CHILDREN = _CLOUD = _EPGDATA = _RECORDINGS = _RECORDINGS_INC = _SESSION = _SESSION_CLOUD = {}
78+
_CHANNELS = {}
79+
_CHILDREN = {}
80+
_CLOUD = {}
81+
_EPGDATA = {}
82+
_RECORDINGS = {}
83+
_RECORDINGS_INC = {}
84+
_SESSION = {}
85+
_SESSION_CLOUD = {}
86+
_TIMERS_ADDED = []
87+
7988
_IPTV = None
8089
_NETWORK_SATURATED = False
81-
_TIMERS_ADDED = []
8290

8391
app = Sanic("movistar_epg")
8492
app.config.update({"FALLBACK_ERROR_FORMAT": "json", "KEEP_ALIVE_TIMEOUT": YEAR_SECONDS})

movistar_u7d.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@
8080
"datefmt"
8181
] = "[%Y-%m-%d %H:%M:%S]"
8282

83-
_CHANNELS = _CHILDREN = {}
83+
_CHANNELS = {}
84+
_CHILDREN = {}
85+
_RESPONSES = []
86+
8487
_IPTV = _LOOP = _SESSION = _SESSION_LOGOS = None
8588
_NETWORK_SATURATED = False
86-
_RESPONSES = []
8789

8890
VodArgs = namedtuple("Vod", ["channel", "broadcast", "iptv_ip", "client_ip", "client_port", "start", "cloud"])
8991

0 commit comments

Comments
 (0)