(kemona_halftau)
i wish i could sync my mpv watch-later times between my laptop and my pc while accounting for file path differences (e.g. on my pc i store videos in /home/[user]/Downloads but on my laptop i store them in /media/[user]/videos), it would make watching/listening to longer videos/podcasts way easier when hopping between them
sadly mpv stores watch-later data as hashes of the absolute filename/url including the path it is stored in, so simply rsyncing ~/.local/state/mpv/watch_later/* like ive been doing isnt enough unless both files are in the exact same path on both machines
maybe someone could write a plugin for this?
@kemona_halftau I would suggest trying to use a symlink so they both match
(kemona_halftau)
@hexaheximal symlinks get resolved when opening files :(
@kemona_halftau @hexaheximal Then mount --bind. (You can have an entry in fstab, possibly with user,noauto. That’s what I do for NFS.)
@diffie @kemona_halftau that's precisely what I said too
bind mounts are great :)
@hexaheximal @kemona_halftau Sry, your post didn’t appear to me.
Btw, bind mounts are great, but they become minor PITA when the fstab starts filling with them, sometimes with user option or having not always accessible location as its source. For example, bind mount of some NFS location somewhere else may be kinda confusing when the NFS server isn’t available at the time of boot.
@diffie @kemona_halftau yeah, I didn't really think of bind mounting in fstab but I can't imagine that being a good thing - if done at startup, I think that is a better job for init services.
also bind mounts are indeed amazing. especially in embedded linux, which is what I typically deal with nowadays :)
@hexaheximal @kemona_halftau I also somewhat dislike the centralised nature of configuring them in fstab. It’s great for system-management stuff but it somewhat sucks when done just for the user or desktop stuff.