This script plays videos using TTRSS's "Default" sort only, how do we change that? #2

Closed
opened 3 months ago by taha · 3 comments
taha commented 3 months ago
Owner

I would prefer videos to play based on the "Newest first" sort.

The main drawback with the default sort is that newly added video feeds will get their entire catalog dumped at the head of the queue.

I would prefer videos to play based on the "Newest first" sort. The main drawback with the default sort is that newly added video feeds will get their entire catalog dumped at the head of the queue.
taha changed title from This script plays videos using TTRSS's "Default" sort, how do we change that? to This script plays videos using TTRSS's "Default" sort only, how do we change that? 3 months ago
Poster
Owner

We use get_headlines(..., view_mode="unread") to retrieve the list of videos.

I tried all the documented view modes (all_articles, unread, adaptive, marked, updated), but none of them correspond to "Newest first" sort. Actually I think the view mode and the sort are handled as two different things in TTRSS, but the ttrss-python (or else the TTRSS API itself) only support view mode.

We use `get_headlines(..., view_mode="unread")` to retrieve the list of videos. I tried all the documented view modes (all_articles, unread, adaptive, marked, updated), but none of them correspond to "Newest first" sort. Actually I think the view mode and the sort are handled as two different things in TTRSS, but the `ttrss-python` (or else the TTRSS API itself) only support view mode.
Poster
Owner

Ok, so the TTRSS API has support for sort order in getheadlines.

And since Nov 2015, so does ttrss-python.

But the latest release of ttrss-python on PyPi (v0.5) predates that commit, unfortunately. The latest tag (no releases) on the Github repo is also v0.5.

Therefore, changing the line ttrss-python==0.5 in requirements.txt to ttrss-python had no effect, as v0.5 was the latest available release anyway.

Question then becomes, how do we install pip module from git master?

Ok, so the [TTRSS API has support for sort order](https://git.tt-rss.org/git/tt-rss/wiki/ApiReference#getheadlines) in `getheadlines`. And since [Nov 2015, so does ttrss-python](https://github.com/Vassius/ttrss-python/commit/2b96d35af1e5ada92c039daa8cd631651faa33b5). But the latest release of ttrss-python on PyPi (v0.5) **predates** that commit, unfortunately. The latest tag (no releases) on the Github repo is also v0.5. Therefore, changing the line `ttrss-python==0.5` in `requirements.txt` to `ttrss-python` had no effect, as v0.5 was the latest available release anyway. Question then becomes, how do we install pip module from git master?
Poster
Owner

Ok, so that's easy enough.

In requirements.txt:

git+https://github.com/Vassius/ttrss-python
+ https://stackoverflow.com/questions/15268953/how-to-install-python-package-from-github + https://stackoverflow.com/a/20101940/1198249 Ok, so that's easy enough. In `requirements.txt`: ``` git+https://github.com/Vassius/ttrss-python ```
taha closed this issue 3 months ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.