Git Product home page Git Product logo

Comments (6)

chenxuuu avatar chenxuuu commented on June 29, 2024

现在按歌单播放的功能是没有把一整个歌单的歌当作整体考虑的,是一首一首分开独立的,所有这个功能暂时没法实现
等我有空闲再加新功能吧,不过加之前要重构。。

from 24h-raspberry-live-on-bilibili.

XuewanZhao avatar XuewanZhao commented on June 29, 2024

em 也许可以试试
输入“停止播放当前歌单”->抓取用户id->匹配播放列表里的点播用户名->删除(切过)匹配到的歌曲
没有仔细看完大佬的代码...但是感觉使用的时候应该树莓派里存的有这些信息...如果和实际出入很大的话请无视.... :P

from 24h-raspberry-live-on-bilibili.

jdjingdian avatar jdjingdian commented on June 29, 2024

@XuewanZhao 我自己是加了一段清空列表直接把全部点歌都清空掉……特定用户使用,我个人的改进思路是可以读取info文件里面的信息然后把指定点歌人点的歌删掉,emmmmm不知道能不能帮上忙

def del_ept():
        send_dm_long('已收到管理员爸爸的指令,正在清空')
        paths = path+'/downloads'   #获取目录下所有文件
        for i in os.listdir(paths):
            paths_file = os.path.join(paths,i)
            
            if os.path.isfile(paths_file):
                os.remove(paths_file)
            else:
                for k in os.listdir(paths_file):  
                    paths_file2 =os.path.join(paths_file,k)
                    if os.path.isfile(paths_file2):
                        os.remove(paths_file2)
        os.system('killall ffmpeg')
        send_dm_long('已经清空列表啦~~么么艹')

然后在下面

elif ((s == '清空列表') and (user=='Jarvis-Ultron') | (user=='JU的投食员')):
        del_ept()

from 24h-raspberry-live-on-bilibili.

XuewanZhao avatar XuewanZhao commented on June 29, 2024

@jdjingdian 对对,我想的大概也是这样,赞

from 24h-raspberry-live-on-bilibili.

chenxuuu avatar chenxuuu commented on June 29, 2024

@all-contributors please add @XuewanZhao for idea

from 24h-raspberry-live-on-bilibili.

allcontributors avatar allcontributors commented on June 29, 2024

@chenxuuu

I've put up a pull request to add @XuewanZhao! 🎉

from 24h-raspberry-live-on-bilibili.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.