Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于播放网址不变的询问 #9

Open
15klli opened this issue Jun 5, 2017 · 3 comments
Open

关于播放网址不变的询问 #9

15klli opened this issue Jun 5, 2017 · 3 comments

Comments

@15klli
Copy link

15klli commented Jun 5, 2017

楼主,您好!我在play()方法中的添加了print "success",发现换歌后的歌曲网址是一样的(如图),而且我把网址提取出来,用命令行中输入omxplayer http://xxxx没有播放任何歌曲,不知道是为什么,期待您的答复!
注:omxplayer 能正常播放本地歌曲

mp3_url = song["mp3_url"]
                    try:
                        subprocess.Popen("pkill omxplayer", shell=True)
                        time.sleep(1)
                        subprocess.Popen("omxplayer " + mp3_url, shell=True, stdout=subprocess.PIPE)
                        self.con.notifyAll()
                        print "success"
                        print "mp3"+mp3_url
                        self.con.wait(int(song.get('playTime')) / 1000)
                    except:
                        pass

image

@yaphone
Copy link
Owner

yaphone commented Jun 6, 2017

你好朋友,好像网易云音乐的播放地址变了现在,后面有时间我再跟踪一下吧

@viplife
Copy link

viplife commented Dec 23, 2017

我的也是 摆弄了还久还是没有解决 希望楼主强势解决啊

@tylk520
Copy link

tylk520 commented Apr 18, 2018

@yaphone 您好 我print(mp3_url)也是和楼主一样的结果 应该是没有获取到MP3的实际地址,求告知

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants