[podcasts] Fix podcast data
This commit is contained in:
@ -70,7 +70,7 @@ def parse_mopidy_uri(uri: str) -> dict[str, Any]:
|
||||
parsed_uri = os.path.splitext(unquote(uri))[0].split("/")
|
||||
|
||||
podcast_data = {
|
||||
"episode_filename": parsed_uri[-1],
|
||||
"title": parsed_uri[-1],
|
||||
"episode_num": None,
|
||||
"podcast_name": parsed_uri[-2].strip(),
|
||||
"pub_date": None,
|
||||
@ -105,7 +105,7 @@ def parse_mopidy_uri(uri: str) -> dict[str, Any]:
|
||||
if podcast_data["episode_num"]:
|
||||
gap_to_strip += episode_num_pad
|
||||
|
||||
podcast_data["episode_name"] = episode_str[gap_to_strip:].replace("-", " ").strip()
|
||||
podcast_data["title"] = episode_str[gap_to_strip:].replace("-", " ").strip()
|
||||
|
||||
return podcast_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user