This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

archiver-bot: fix IMDb regex to handle locale prefixes (e.g. /de/title/)

+4 -4
+3 -3
2configs/services/flix/ipfs.nix
··· 30 30 local path="$1" 31 31 [ -f "$path" ] || return 0 32 32 case "$(basename "$path")" in 33 - .* | *.part | *.tmp) return 0 ;; 33 + .* | *.part | *.tmp | *.synced.*) return 0 ;; 34 34 esac 35 35 36 36 log "Adding $path" 37 - cid=$($IPFS add --nocopy --pin --quieter "$path" 2>&1) || { 38 - log "Failed to add $path: $cid" 37 + cid=$($IPFS add --nocopy --pin --quieter "$path" 2>/dev/null) || { 38 + log "Failed to add $path" 39 39 return 0 40 40 } 41 41 log "Pinned $path -> $cid"
+1 -1
5pkgs/archiver-bot/archiver_bot/__init__.py
··· 20 20 logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s") 21 21 log = logging.getLogger("archiver-bot") 22 22 23 - IMDB_RE = re.compile(r"https?://(?:www\.)?imdb\.com/title/(tt\d+)") 23 + IMDB_RE = re.compile(r"https?://(?:www\.)?imdb\.com/(?:[a-z]{2}/)?title/(tt\d+)") 24 24 TMDB_MOVIE_RE = re.compile(r"https?://(?:www\.)?themoviedb\.org/movie/(\d+)") 25 25 TMDB_TV_RE = re.compile(r"https?://(?:www\.)?themoviedb\.org/tv/(\d+)") 26 26