Skip to content

Commit

Permalink
Merge pull request #43 from c469591/main
Browse files Browse the repository at this point in the history
新增對手機板連結的解析
  • Loading branch information
Diaoxiaozhang authored Mar 13, 2024
2 parents fdca02e + b136702 commit 12d8de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
sound_id = int(_)
except ValueError:
try:
sound_id = re.search(r"ximalaya.com/sound/(?P<sound_id>\d+)", _).group('sound_id')
sound_id = re.search(r"sound/(?P<sound_id>\d+)", _).group('sound_id')
except Exception:
print("输入有误,请重新输入!")
continue
Expand Down Expand Up @@ -112,7 +112,7 @@
album_id = int(input_album)
except ValueError:
try:
album_id = re.search(r"ximalaya.com/album/(?P<album_id>\d+)", input_album).group('album_id')
album_id = re.search(r"album/(?P<album_id>\d+)", input_album).group('album_id')
except Exception:
print("输入有误,请重新输入!")
continue
Expand Down

0 comments on commit 12d8de2

Please sign in to comment.