Skip to content

Commit

Permalink
fixing encoding and errors in opening mrtehran file
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hv authored Dec 31, 2022
1 parent 381d0ec commit f5fe24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def singer_name_mrtehran(self, app):

self.singer_name_text = self.get_singer_name.text().strip().replace("ي", "ی")
path = Path("../resources/musics_db/singers_links(MrTehran).txt")
links = open(path, "r").readlines()
links = open(path, "r", encoding='utf-8', errors='ignore').readlines()
links = [i.strip().split(',') for i in links]

for i in links:
Expand Down

0 comments on commit f5fe24a

Please sign in to comment.