This reverts commit 4a5456b152.
This commit was here to bypass a bug of dlfp rss Atom.
The bug is fixed and the commit can be reverted.
Reference : http://linuxfr.org/suivi/855
Most backends don't set it nb_messages and no application used it.
No backends set nb_unread and only one application tried to use it.
This should help avoid useless fillobj() calls in some cases.
fixes#827
It is unused, and no backend implemented it — so it was wrong to have it
in the function signature.
It also does not seem very helpful, we have get_threads() if we want to
do something advanced with treads.
fixes#825
There is now a "latest" collection (or "latest_nsfw").
The feature didn't look much used, since it didn't work on many
backends.
Using collections will make it easy to support other things
like most viewed, featured, etc.
As a bonus, I added tests for every backend with the feature.
It is now in "data-src" instead of "src", because they use JavaScript
lazy loading.
Also ask for the bigger thumbnail, and remove useless anti-caching.
FIP now uses the same website as most Radio France radios.
As a consequence, it is able to support CapVideo.
There are a few differences between FIP and the other radios, but this
still allowed for less code, and the code should be more robust for
every radio.
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.
Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
change to a comment something that wasn't really appropriate for a
docstring.
* Unneeded first if condition in meteofrance