Skip to content

Commit

Permalink
fix copyright issue (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
oldoldstone authored and kigawas committed Mar 18, 2019
1 parent 8780d8f commit 1234e66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NEMbox/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,12 @@ def start_playing(self, on_exit, args):
target=self.run_mpg123, args=(on_exit, args["cache"])
)
else:
new_url = NetEase().songs_url([args["song_id"]])[0]["url"] #使用新地址
if not new_url: #如果没有获得新地址
new_url = args["mp3_url"] #使用老地址传给mpg123
thread = threading.Thread(
target=self.run_mpg123,
args=(on_exit, args["mp3_url"], args["expires"], args["get_time"]),
args=(on_exit, new_url, args["expires"], args["get_time"]),
)
cache_thread = threading.Thread(
target=self.download_song,
Expand Down

0 comments on commit 1234e66

Please sign in to comment.