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

歌单同步问题和播放杂音问题 #273

Closed
tqghhh opened this issue May 7, 2024 · 14 comments
Closed

歌单同步问题和播放杂音问题 #273

tqghhh opened this issue May 7, 2024 · 14 comments

Comments

@tqghhh
Copy link

tqghhh commented May 7, 2024

超过五万首歌单同步问题,有去navidrome反馈过吗,不能增量同步太不好用了,navidrome暂时没修复的话,就每次都自动全量同步吧或者增加个按钮让用户选,不然多个用户使用不方便总不可能一一告知要手动同步。还有一个问题是超过码率2500k以上的歌曲不转码播放高频全是杂音

@gitbobobo
Copy link
Owner

还没有反馈,我这里曲库只有2w,没办法触发此bug以提供日志给开发者

@gitbobobo
Copy link
Owner

gitbobobo commented May 8, 2024

这个 bug 你可以在 navidrome 的网页端尝试触发:

  1. 进入全部歌曲列表
  2. 翻到第二页,此时浏览器的 URL 会多出一些请求参数:filter=%7B%7D&order=ASC&page=2&perPage=15&sort=title
  3. sort=title 改为 sort=createdAt,回车触发请求,页面应该是可以正常接收数据并更新的。
  4. 然后修改 pageperPage 的值以使 page * perPage 的结果大于 5w,回车后你会看到页面报错
  5. 但将 sort=createdAt 改回 sort=title 后则一切正常

@tqghhh
Copy link
Author

tqghhh commented May 8, 2024

20240508
用这个可以反馈吗

@gitbobobo
Copy link
Owner

应该可以吧,估计就是sql有问题

@tqghhh
Copy link
Author

tqghhh commented May 8, 2024

那麻烦你反馈一下,我英语不好..

@gitbobobo
Copy link
Owner

gitbobobo commented May 8, 2024

能提供个网页端报错的截图吗?包含URL,用我上面说的方法

@gitbobobo
Copy link
Owner

另外日志复制成文字吧,表单里没办法粘贴图片

@tqghhh
Copy link
Author

tqghhh commented May 8, 2024

2024/05/08 10:13:10 ERRO[37483] SQL: SELECT coalesce(starred, 0) as starred, coalesce(rating, 0) as rating, coalesce(play_count, 0) as play_count, starred_at, play_date, media_file.*, coalesce(position, 0) as bookmark_position FROM media_file LEFT JOIN annotation on (annotation.item_id = media_file.id AND annotation.item_type = 'media_file' AND annotation.user_id = 'd667af88-6315-4166-94bb-64242a552837') LEFT JOIN bookmark on (bookmark.item_id = media_file.id AND bookmark.item_type = 'media_file' AND bookmark.user_id = 'd667af88-6315-4166-94bb-64242a552837') WHERE media_file.oid not in (SELECT media_file.oid FROM media_file LEFT JOIN annotation on (annotation.item_id = media_file.id AND annotation.item_type = 'media_file' AND annotation.user_id = 'd667af88-6315-4166-94bb-64242a552837') LEFT JOIN bookmark on (bookmark.item_id = media_file.id AND bookmark.item_type = 'media_file' AND bookmark.user_id = 'd667af88-6315-4166-94bb-64242a552837') ORDER BY created_at asc LIMIT 50250) ORDER BY created_at asc LIMIT 50 args="map[]" elapsedTime="147.951µs" error="ambiguous column name: created_at" requestId=navidrome/mmaRXnnph2-003519 rowsAffected=-1 username=Navidromeadmin

2024/05/08 10:13:10 2024/05/08 02:13:10 Error reading mediafile: ambiguous column name: created_at

2024/05/08 10:13:10 ERRO[37483] HTTP: GET http://192.168.124.11:4533/api/song?_end=50300&_order=ASC&_sort=createdAt&_start=50250 elapsedTime=46.7ms httpStatus=500 remoteAddr="172.28.0.1:38218" requestId=navidrome/mmaRXnnph2-003519 responseSize=49
0240508105710

@gitbobobo
Copy link
Owner

navidrome/navidrome#3006

已提交,可以关注下

@tqghhh
Copy link
Author

tqghhh commented May 8, 2024

ok

@gitbobobo
Copy link
Owner

作者回复了,这个问题下个版本会解决,可能是在下周。

你也可以试试在 docker 的环境变量中加入 ND_DEVOFFSETOPTIMIZE 以在当前版本修复此问题,值设置为一个比较大的数字,超过你的曲库数量就可以。

@tqghhh
Copy link
Author

tqghhh commented May 8, 2024

确实可以了

@tqghhh
Copy link
Author

tqghhh commented May 8, 2024

还有个问题,我点击歌曲播放时,有时候不会播放,有时候在播放,但是进度条在动却没有声音,要暂停再播放才有声音,ios的,貌似发生在重来没播放过的歌曲上

@gitbobobo
Copy link
Owner

音量淡入淡出目前有bug,是要按两次播放才能恢复

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

2 participants