[GH-ISSUE #60] How hidden the files are not videos with somes js ? #52

Closed
opened 2026-02-25 20:32:16 +03:00 by kerem · 2 comments
Owner

Originally created by @mistertest on GitHub (Jan 19, 2016).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/60

Hello the team, happy good year and thank you for your great tool.
How hide the files that are not videos with somes Javascript or jquery functions ? Or there is a definite class like {torrent:file video } something like that ?

thank you.

Originally created by @mistertest on GitHub (Jan 19, 2016). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/60 Hello the team, happy good year and thank you for your great tool. How hide the files that are not videos with somes Javascript or jquery functions ? Or there is a definite class like {torrent:file video } something like that ? thank you.
kerem 2026-02-25 20:32:16 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@asapach commented on GitHub (Jan 19, 2016):

Your best bet would probably be go through each file in a torrent and filter it by extension. For example go through the torrents array and then through torrent.files array and inspect the file.name property to see if it matches known video extensions, e.g. .mp4

<!-- gh-comment-id:172891482 --> @asapach commented on GitHub (Jan 19, 2016): Your best bet would probably be go through each file in a torrent and filter it by extension. For example go through the `torrents` array and then through `torrent.files` array and inspect the `file.name` property to see if it matches known video extensions, e.g. `.mp4`
Author
Owner

@mistertest commented on GitHub (Feb 21, 2016):

Hello yes this is the idea, but jquery function for the filter and add class is not working with this angular app. I don't know the programming with angular
I want integrate a audio player directly in the view i continue my researches

<!-- gh-comment-id:186824672 --> @mistertest commented on GitHub (Feb 21, 2016): Hello yes this is the idea, but jquery function for the filter and add class is not working with this angular app. I don't know the programming with angular I want integrate a audio player directly in the view i continue my researches
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#52
No description provided.