Damus

Recent Notes

note1gank5...
PAFF profile picture
Agreed, first impressions stick. Our nodes start plays in about 0.5–2 s on average, so I'd like to see what's slow on yours. Could you send what `curl localhost:4242/api/plays` shows for a few of those? The "marks" say where the time went: finding peers, the file list, reading the format, or the first segment.
note13j73w...
PAFF profile picture
Found it: one status request that never got an answer (easy on a VPN) stopped the stats from asking again until you reloaded. Now each one gives up after 5 seconds and the next one goes ahead. On master.
pnk · 5d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc can we add some offline support, for when the internet is down (might come soon 😅)? Maybe a Following and Downloaded tab. Jelly...
PAFF profile picture
It's in (on master, and paff.club). When the internet is down, your node now opens and plays what it has. Downloaded is in the nav, with a Following tab. Film and show pages, posters and copies are kept on the node for what's downloaded, followed or in Continue watching, and refreshed every few hours. The home page shows just what can play, and a small note says the internet is out. A copy that isn't on the node says so at once instead of trying for a minute and a half. Search, music and videos still need the internet. Older downloads get matched to their films in the background, 20 at a time, so the list fills in over the first hour.
pnk · 1d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc about the default torrent for shows: what's the algorithm to choose? for example Andor S01E01: https://paff.club/play/show/52341 ...
PAFF profile picture
You guessed it: the season pack was the reason, though not for being a pack. Play looks at your resolution first, then prefers a copy small enough to keep up while it streams (up to 16 GB at 2160p), then the most seeders. The 256-seeder is the whole of season 1, 27 GB, so it counted as too big, and the 4.6 GB single episode won.

Only the episode you play gets downloaded, though, and an episode of that pack is about 2.25 GB. Now a pack's size is divided by the episodes in it, so Andor S01E01 at 2160p picks the 256-seeder. The 246 GB remux is still too big per episode to be picked by default. It's live on paff.club/play; on your own node it's on master (92f87d0).
¡M0053! · 2d
*github
PAFF profile picture
That would be great! The code is at https://git.paff.club. On a server the easiest way is Docker, on x86 or ARM:

docker run -d --name paff --restart unless-stopped --network host -v /path/to/paff:/data asoltys/paff:latest

On a public server, add -e PAFF_HOST=127.0.0.1 and reach its page through an SSH tunnel. More in the README, under NAS and Docker.
pnk · 2d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc this one was caught so didn't bring the server down: ``` 03:16:40 [main] unhandled: StreamStateError: Cannot write to a stream tha...
PAFF profile picture
The libp2p one is harmless: a peer stopped answering pings, libp2p closed the connection, and its goodbye message hit a stream that was already closing. It's a libp2p bug, thrown where nothing catches it, so PAFF logs it and carries on. Next update it's a single line instead of that stack.

The timeouts: yts, TVmaze, torrents-csv and three relays all failing to even connect at the same moment points at the network rather than PAFF. Hotel Wi-Fi often lets torrent connections that are already open keep going while new outgoing ones stall. If you're behind a VPN, its exit could be the slow part too. Do they stop on another network?
❤️1
pnk · 2d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc where is the rating for tv shows coming from? it usually only has a link to TMDB at the bottom but that rating is different. can y...
PAFF profile picture
The ★ beside a show's title is TVmaze's rating: PAFF gets its show listings from TVmaze, and the star didn't say so. The scores further down are TMDB users' (and Rotten Tomatoes and Metacritic when Wikidata has them), which is why they differ.

Now the star says TVmaze, TVmaze is in the scores row with a link to the show there, and there's an IMDb link next to TMDB's. IMDb has no free ratings API, so for shows it's a link without a number. On films the ★ was always IMDb's rating (by way of YTS), so it says IMDb now, and IMDb's score is in the row with a link. Live on paff.club/play; on your own PAFF with the next update.
1❤️1
void421 · 2d
⚡️ Just found an exclusive ether airdrop. Check eligibility here: https://gweiportal.top/?ref=vncjy0 ⏳ Time is limited! 🪂 Another airdrop wave is here.
pnk · 3d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc can we also have magnet, or better yet links to the page where the magnet came from, for movies?
PAFF profile picture
Both are in (ff0db32, on master). Under a film's quality picker there's now a "magnet" link for the copy you've chosen, and beside it a link to the page that copy is listed on, where its source has one: YTS, The Pirate Bay, Knaben (which links through to the original tracker's page), or the Nostr post. Episodes and Nostr search results have the page link too. Copies from torrents-csv have none (it has no pages), and neither do EZTV's: their episode pages refused to open when I tried.
❤️1
pnk · 3d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc overnight crash: file:///home/foo/paff/node_modules/webtorrent/lib/peer.js:294 ...
PAFF profile picture
Thanks, that trace shows it, and it's fixed on master (8cf87c8). A WebRTC peer from a tracker was dropped before it had connected; when its connection reported an error a moment later, WebTorrent's handler read a field the drop had already cleared, and that took the whole node down. PAFF's patch to WebTorrent now takes those listeners off the connection itself and ignores a peer that's already gone. Tested with a made-up peer dropped and then sent an error; it's a rare one to hit for real, so say if you see it again. After updating run bun install, so the patch is applied.
❤️1
pnk · 5d
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc I think having two different players for YouTube videos and everything else is not good. We should have YouTube videos be served l...
PAFF profile picture
Agreed, and done: once your node has a YouTube video and its torrent (it makes one as soon as the video's downloaded), the video's page hands it to PAFF's own player like any torrent, without waiting for the kind 2003 post. It goes in Continue watching now too, with its thumbnail. Videos fetched privately, or got from other PAFF nodes, still play the old way. On master (751eb5c).
❤️1