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

多電視同步歷史與進度 #552

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

bobyang3
Copy link
Contributor

@bobyang3 bobyang3 commented Jul 18, 2024

抱歉. 發現上次因爲修forked dev造成 0 files PR. 再次申請PR. 這是第一個完成的主機選項,之後有Gist sync, google sync, samba sync, webdav sync等計劃,可能還加入同步 keep

NOTE: 因爲DB改變,需要先反安裝舊版本再安裝才會有新的資料庫欄位,才不會有app壞掉無法啓動訊息

Sync History and watched length between devices by using FTP:

  1. Add two more fields, deleted (bool) and lastupdated in DB (datetime in UTC so people can sync if they need to go to a different timezone for a trip)
  2. Use Soft deletion instead of Hard deletion. And design to hard delete after xx days when there is no more devices to sync. The reason is that, we need a way to identify if the history record is removed or a new inserted across multiple TVs. keep the row to identify new records or has been deleted.
  3. FTP will crate folders automatically if folders are missing
  4. Sync will run when the app starts or when the user clicks on "Sync" button in Settings.
    image

@mzlipro
Copy link

mzlipro commented Aug 29, 2024

能做觀影歷史保留嗎?比如現在用飯太硬接口觀看的影視,換到肥貓的接口後,歷史記錄里就沒有影片記錄了。
希望能做到在飯太硬觀看的影視,換到肥貓後還能顯示在歷史裡,點擊影片歷史自動用肥貓的接口源匹配觀看。
期待後續webdav備份同步

@bobyang3
Copy link
Contributor Author

bobyang3 commented Sep 5, 2024

能做觀影歷史保留嗎?比如現在用飯太硬接口觀看的影視,換到肥貓的接口後,歷史記錄里就沒有影片記錄了。 希望能做到在飯太硬觀看的影視,換到肥貓後還能顯示在歷史裡,點擊影片歷史自動用肥貓的接口源匹配觀看。 期待後續webdav備份同步

是的, webdav 也是計劃之一,這個FTP合併後,確認了DB欄位與UI界面,就會再加入其他支援

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

Successfully merging this pull request may close these issues.

2 participants