Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

few questions about webserver's index page #1538

Closed
untitledlt opened this issue Nov 7, 2018 · 6 comments
Closed

few questions about webserver's index page #1538

untitledlt opened this issue Nov 7, 2018 · 6 comments
Labels

Comments

@untitledlt
Copy link
Contributor

@untitledlt untitledlt commented Nov 7, 2018

When i start streaming server and open address in browser, i am getting index page with torrent's files list.

  • How these files are ordered? Can I trust that order is gonna be the same every time?
  • Is it possible to get JSON instead of HTML?
@untitledlt untitledlt changed the title few questions about webserver's files list few questions about webserver's index page Nov 7, 2018
@jimmywarting

This comment has been minimized.

Copy link
Contributor

@jimmywarting jimmywarting commented Nov 7, 2018

I think the order is based in the same order the files are added to the torrent file

The order is always the same

And it's not possible to get it as a json

@jimmywarting

This comment has been minimized.

Copy link
Contributor

@jimmywarting jimmywarting commented Nov 7, 2018

The order is not always in alphabet order doe some torrent file generator dose this when generating the torrent file.

Also depends on how it recursively it reads a folder

@untitledlt

This comment has been minimized.

Copy link
Contributor Author

@untitledlt untitledlt commented Nov 7, 2018

Thanks for an answer.
I guess json would be a great addition to this awesome lib!

@jimmywarting

This comment has been minimized.

Copy link
Contributor

@jimmywarting jimmywarting commented Nov 7, 2018

if implemented then there is two options

  1. send accept header to say you want json default to html
  2. add json extension to the end of the url get('.../index.json')
@untitledlt

This comment has been minimized.

Copy link
Contributor Author

@untitledlt untitledlt commented Nov 8, 2018

Both options are fine but i prefer separate url as it's faster to test in browser and usually less typing and easier to remember.
But it's just me :)

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Feb 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Feb 6, 2019
@stale stale bot closed this Feb 13, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.