Commit Graph

19 Commits

Author SHA1 Message Date
bastimeyer 5e6f03c3cd chore: add "B" rules to ruff config 2023-03-24 09:41:23 -07:00
bastimeyer 57fa6f80e8 chore: add "COM" rules to ruff config 2023-02-09 10:26:50 -08:00
bastimeyer faab9200c7 chore: add "I" and "TID" rules to ruff config 2023-02-09 10:26:50 -08:00
bastimeyer c211e5866e plugin.api.validate: deprecate text alias
- Deprecate text alias and raise StreamlinkDeprecationWarning on access
- Add deprecation to docs
- Replace validate.text with str in remaining plugins
- Update test
2023-01-13 11:27:11 -08:00
Ian Cameron 90230e4c9d plugins: add missing "description" metadata tags 2022-03-12 22:33:00 +01:00
bastimeyer d0fb04dba4 plugins: add metadata header comments
The metadata is copied from the documentation's plugin_matrix, which is
going to be replaced by a sphinx extension which parses the metadata
in each plugin file and dynamically generates the plugins document.

Metadata tests will be added with sphinx extension.

TODO:
- Add $description metadata tags. Some of the plugin descriptions can be
  found in the git history, while others have to be retrieved from
  issues and pull requests on GitHub, or they have to be looked up.
- Add URLs to metadata which were previously missing in the
  plugin matrix due to space constraints (see the matcher regexes).
2022-03-03 20:33:30 -08:00
bastimeyer a0437c2e7b stream: clean up imports 2021-09-20 15:31:39 +00:00
bastimeyer 3231977011 plugin: metadata attributes
- add author, category and title attributes to base Plugin class
- make getters return attributes instead of None
- remove unnecessary duplicate attributes and getters from plugins
- keep getters in plugins which use custom logic
2021-08-31 19:21:08 -07:00
gustaf 3fa4083960 plugins.tv4play: fix plugin URL regex 2021-07-24 09:19:56 +02:00
bastimeyer 98428d663e plugins: update plugins with URL capture groups
Plugins with only one URL regex which reference capture groups, but
don't translate URLs and their `can_handle_url` is simple.

Update and fix URL regex patterns:
- remove unnecessary anchors and optional trailing wildcards
- optionally match https (scheme update is plugin responsibility)
- escape actual dots in hostnames and path file extensions
- fix subdomain (non-)capture groups (don't match anything)
- fix unnecessarily escaped characters
- simplify character sets
- improve readability (verbose and non-verbose patterns)
2021-06-29 16:45:36 +02:00
bastimeyer 6700a2f985 chore: use yield from where possible 2020-11-27 16:04:45 +01:00
bastimeyer 5149752f82 chore: remove compat imports of urllib and queue 2020-10-19 17:28:47 +02:00
bastimeyer 13510807e4 flake8: E126, E127, E128
E126 continuation line over-indented for hanging indent
E127 continuation line over-indented for visual indent
E128 continuation line under-indented for visual indent
2020-02-19 18:41:42 +01:00
Billy2011 fb6a00c86b streamlink.plugins: replace global http session by self.session.http (#1925)
* streamlink.plugins: replace global http session by self.session.http
2018-07-17 12:15:38 -07:00
back-to cc384d2160
plugins.tv4play: Fix for updated website 2018-07-10 15:07:51 +02:00
stepshal 922e169207 Add blank line after class or function definition (#408) 2017-01-12 14:54:55 +00:00
beardypig c89e65590f plugins: all regex string should be raw (#361)
support for non-standard escape characters has been deprecated in Python 3.6
2017-01-05 09:28:19 -08:00
Beardypig 63d9c3d68e plugins.liveme: added support for liveme.com streams (#306)
plugins.tv4play: fixed broken regex
2016-12-16 10:54:48 -08:00
Charlie Drage a6ceedc4e7 Rename instances of "livestreamer" to "streamlink"
Renames all instances of "livestreamer" to "streamlink".
2016-09-19 15:46:06 -04:00