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

Can't play or copy video files from Google Photo #7158

Closed
4 tasks done
jindongh opened this issue Sep 10, 2024 · 1 comment
Closed
4 tasks done

Can't play or copy video files from Google Photo #7158

jindongh opened this issue Sep 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jindongh
Copy link
Contributor

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.36.0

Driver used / 使用的存储驱动

GooglePhoto

Describe the bug / 问题描述

When I copy ~20,000 photo and videos from Google Photo to aliyun, it always fail after 322 page, I retried >3 times and it is consistent.

And then I enabled debug log: ./alist server --no-prefix --debug, and I see it is failing with 404 when access videos from Google Photo with url ending with =m37, I tried to play the video and it failed as well.

Then I went through this document: https://developers.google.com/photos/library/guides/access-media-items#image-base-urls, it seems we shoud use dv instead of w and h etc.

So I changed it to dv locally and tested it, the copy went through and I can also play videos online.

Reproduction / 复现链接

https://dev.hjz.pp.ua/@manage/tasks/copy

It just stuck after 322 pages of photos are copied

Config / 配置

{
  "id": 3,
  "mount_path": "/google",
  "order": 0,
  "driver": "GooglePhoto",
  "cache_expiration": 30,
  "status": "work",
  "addition": "{\"root_folder_id\":\"root\",\"refresh_token\":\"<token>\",\"client_id\":\"202264815644.apps.googleusercontent.com\",\"client_secret\":\"X4Z3ca8xfWDb1Voo-F9a7ZxJ\",\"show_archive\":false}",
  "remark": "",
  "modified": "2024-08-27T09:41:21.679926028Z",
  "disabled": false,
  "enable_sign": false,
  "order_by": "",
  "order_direction": "",
  "extract_folder": "",
  "web_proxy": false,
  "webdav_policy": "native_proxy",
  "proxy_range": false,
  "down_proxy_url": ""
},

Logs / 日志

[[31mERRO[[0m[2024-09-09 06:23:48] GET /dav/google/全部媒体/20131031_085131.mp4 http request [https://lh3.googleusercontent.com/lr/AAJ1LKeO3siRX3jK79qEU
c_YJ-zrd9ErmOYIfR3GMEckPbkT2NiO2EZ6Tiv6NOHkEKobiHoG7ajCpN78EvcDYeydR7nIH6kVW6phsv-0-2TZytV1rrTngMHQeVs48Xm0fsV9v2Hx5gVrFKD1_cU-OZeNTYREmdKcNymVjBn1IslzZIjNQ
1vm2iV5spwOyY0tXez5tVUO2lQ2PW7uUT4x0L1WKpc9OBs2tVJ6Seqrv30pwNpZ98TQkMBzVdzSyIhyscpP4hVHmLC_Z4kTyX-OfLebu7N0jyslacRCW5kNhVLi-lOP4BC9ih7wu6P8iKSDd1b_FPCtrJE3Z
1xmToRV9dQ-ep7n87mcWxm5ObkgQeuqL0WUPX6-ML6yFtRBXJXtso9DDKjoyz21zuNnzGGuZei0gWPcWp1_KcfAXOjiy_T5By_B9m-svceo2h66kglZgmx-Rm1TPCwHapIsjmeuGnZ-195QyIR88K8zMhMDT
suMa4eYDkO6Xwm1MSreyZMXWokEO5Ob4GXnaNT2m7FxMWkMXeWJn-SAvud5XMVlUiDVxn1T52M985jUm3Uo4vOyPiAbXosYtJASTVmDEJqT3kGwbUlAPs1AVI9yg2h1dQJuhaysllkwn58fC1tjSEtgVVvmX
C_7dwyFonUjYfE0y2qMsF0BIO5SlX3VeAm4impOPF-6fo1CcxOkKIgZdEKQtY1isN7b5Y5DiNSQRd-Zo4hConwjqfbBcaB7kVMaXFF8edD7pE7v-WvWmju3aYDq_1bQc6OfGJB9yHSbAjnl2RbvxM4F2CWJV
fzhnV489viRHxsspIB01doJvtwCRDZirkFSOEf151pJ2_hM8g9i57l8Lc79rwEbIRN157keay5LPJ8TLnEITnxEqXyY0teg-TKDJUwjJlkxldjADDWpsFUcS0vnuatppql2KS-LNozK2di3KGlT_z9FbnEVZ
-_oSNB412sSQs7Y9XRTgPZ0suvEVg-MYe3BeBJEZUr6iY_ho62lUApj552y=m37] failure,status: 404 response:�PNG

@jindongh jindongh added the bug Something isn't working label Sep 10, 2024
Copy link

welcome bot commented Sep 10, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

jindongh added a commit to jindongh/alist that referenced this issue Sep 10, 2024
alist-org#7158 During copy from google photo to aliyun, it failed consistently with 404 when copying mp4 file with =m37.

Change =m37 to =dv will fix the issue
@xhofe xhofe closed this as completed in 1b42b96 Sep 12, 2024
Three-taile-dragon pushed a commit to loognsss/blist that referenced this issue Sep 26, 2024
…#7160 close alist-org#7158)

alist-org#7158 During copy from google photo to aliyun, it failed consistently with 404 when copying mp4 file with =m37.

Change =m37 to =dv will fix the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant