Skip to content

Commit

Permalink
Show missing EIT mappings (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 committed Nov 21, 2022
1 parent 1d3f629 commit 0ae7fe6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions resources/lib/epg.py
Expand Up @@ -412,10 +412,14 @@ def grabber_process(self):
print(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}: File created successfully!")
if len(missing_genres) > 0:
try:
print("\n--- MISSING EIT MAPPINGS ---\n")
for i in missing_genres:
print(i)
print("----------------------------\n\n")
with open(f"{self.file_paths['storage']}missing_genres.txt", "w") as log:
print("\n--- MISSING EIT MAPPINGS ---\n")
log.write("--- MISSING EIT MAPPINGS ---\n")
for i in missing_genres:
print(i)
log.write(f"* {i}\n")
print("----------------------------\n\n")
log.write("----------------------------\n")
except:
pass
except:
Expand Down

0 comments on commit 0ae7fe6

Please sign in to comment.