fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.36k stars 343 forks source link

Manage/sources display source IDs #1306

Closed deathbybandaid closed 1 year ago

deathbybandaid commented 2 years ago

Excuse the bad job via snipping tool, but should get the concept across. It would be useful if the manage sources page had the source-ID number listed somehow.

image

Doing so would allow me to more easily write a python script service to update certain feeds at specific intervals via the api instead of updating all at once.

jtojnar commented 2 years ago

I do not want to display that in the interface but we could expose it in a data attribute again and then user could make it visible using custom CSS.

jtojnar commented 2 years ago

The following should work with https://github.com/fossar/selfoss/commit/4a9ef4e196ed3d1fdd4633920d3a82bb1c6b84a7:

.source[data-id]::after {
    content: attr(data-id);
}
deathbybandaid commented 2 years ago
.source[data-id]::after {
    content: " • Source-ID: " attr(data-id);
}

Looks a bit cleaner

jtojnar commented 1 year ago

Closing as something that does not fit in selfoss and can be achieved with user code.