mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 23:39:15 +02:00
comments
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ def load_dict_from_custom_format(file_path: str) -> dict:
|
|||||||
result_dict = {}
|
result_dict = {}
|
||||||
with open(file_path, 'r') as file:
|
with open(file_path, 'r') as file:
|
||||||
for line in file:
|
for line in file:
|
||||||
if line.strip() == "":
|
if line.strip() == "" or line.startswith(";"):
|
||||||
continue
|
continue
|
||||||
key, value = line.split(':', 1)
|
key, value = line.split(':', 1)
|
||||||
result_dict[key.strip()] = value.strip()
|
result_dict[key.strip()] = value.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user