mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 06:35:48 +03:00
[GH-ISSUE #8] fetch videos only #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @htwmehdi on GitHub (Sep 21, 2014).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/8
is there a way to fetch only video files ?
thank you
@asapach commented on GitHub (Sep 21, 2014):
Can you give an example? It only downloads stuff you either "check" explicitly or stream via the direct link.
@htwmehdi commented on GitHub (Sep 21, 2014):
what i want is to only get the video files without any other files and then embed it into a video player
@asapach commented on GitHub (Sep 21, 2014):
Depending on your scenario you can call the api and either parse json or m3u output and figure out which files are video (e.g. *.mp4):
GET http://localhost:9000/torrents/b3bd749bcda45755e076ebb9f8dcb5a83b3d0ae2GET http://localhost:9000/torrents/b3bd749bcda45755e076ebb9f8dcb5a83b3d0ae2/files@htwmehdi commented on GitHub (Sep 21, 2014):
this can't be done when i click download ? instead how having a list it just shows the player.
i have tried to embed html5 video but the file link wont be parsed inside
@asapach commented on GitHub (Sep 21, 2014):
When you click download button it just downloads torrent metadata, not the files themselves. To download a file you need to open the file URL (e.g.
http://localhost:9000/torrents/c23835d560682c9d29f5ff617c3d0b0863b37f9c/files/video.mp4) in a browser (or other http client) somehow.How you do that is up to you.
@htwmehdi commented on GitHub (Sep 21, 2014):
please take alook at the screenshot in the previous comment
when i put
/torrents/{{ torrent.infoHash }}/files/{{ file.path | encodeUri }}insidevideotag the src is broken and displays the vars but not the file linkThank you for your time
@asapach commented on GitHub (Sep 21, 2014):
Try using
ng-srcattribute instead ofsrc, or build it inside the binding ({{ }}) - it's an Angular thing.@htwmehdi commented on GitHub (Sep 21, 2014):
it looks like a bug in angular.js
https://github.com/angular/angular.js/issues/1352
@asapach commented on GitHub (Sep 21, 2014):
Try this: http://stackoverflow.com/questions/19372300/angular-js-dynamic-ng-src-not-working-in-1-2-0-rc-2/21307518
@asapach commented on GitHub (May 2, 2015):
I've added a
linkproperty to the file in response, so now this should work:@htwmehdi commented on GitHub (Jan 10, 2016):
@asapach Thank you, will check this out