1
mirror of https://github.com/streamlink/streamlink synced 2024-08-18 10:15:04 +02:00
Commit Graph

32 Commits

Author SHA1 Message Date
Beardypig
f29b08c58c Windows command line parsing fix (#300)
* Enable automated testing on Windows via AppVeyor

* tests: add some tests for the command line argument parsing

* cli: fixed windows argument parsing with escaped quotes, etc.

* tests: python2.6 requires unittest2

* tests: fixed awful typo!
2016-12-15 11:47:22 -08:00
Beardypig
e2af160c50 plugins.webtv: added a new plugin to support web.tv (#144) 2016-11-09 09:44:26 -08:00
Beardypig
13dd094ebf plugins.adultswim: added a new adultswim.com plugin (#139)
- only the live streams (http://www.adultswim.com/videos/streams/) are supported
2016-11-07 09:09:59 -08:00
Beardypig
127ac26eb6 Added a method to automatically determine the encoding when parsing JSON, if no encoding is provided. (#122) 2016-11-03 09:35:57 -07:00
Beardypig
de8d8ee49a TVPlayer.com: fix for 400 error, correctly set the platform parameter (#123)
* tvplayer: send the user-agent header when making the intial request, so that platform is correctly populated

* tvplayer: update the url matching and include some tests
2016-11-03 09:33:54 -07: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
Christopher Rosell
92acad4c88 tests: Fix broken test after the justintv plugin was removed. 2014-08-06 19:34:44 +02:00
Christopher Rosell
0c8abe1caf plugin.api.validate: Add support for dicts in map. 2014-07-13 16:26:09 +02:00
Christopher Rosell
dea90fb2e7 cli: Support unicode exceptions on Python 2 properly.
This reverts the previous usage of

  from __future__ import unicode_literals

in favor of using the u"" string prefix where needed.

Forcing everything to be unicode literals on Python 2
was a bad idea since the standard library is largely
bytestrings and that doesn't mix well.
2014-06-27 16:58:18 +02:00
Christopher Rosell
3ee0d591a2 plugin.api.validate: Add startswith and endswith. 2014-06-26 16:07:31 +02:00
Christopher Rosell
f00945496d plugin.api.validate: Add support for regex match to get(). 2014-06-26 16:07:25 +02:00
Christopher Rosell
0969b27e49 plugin.api.validate: Add support for URL validation. 2014-06-26 16:07:23 +02:00
Christopher Rosell
26d7ddc5ae plugin.api: Add a validation API.
This API is created to make it easy to validate that we
are fed sane data from the APIs/services used in the plugins.
2014-06-03 17:28:59 +02:00
Christopher Rosell
cd1bf03133 tests: Python 2.6's unittest module is terrible. 2014-03-29 00:34:48 +01:00
Christopher Rosell
5ebf5af093 plugin.api.http_session: Make sure a read timeout is set.
requests 2.0 changed the read timeout behaviour,
but it will be fixed in the future 2.3.0 release.

This fix uses a HTTPAdapter if needed that will
make the behaviour consistent on all versions.
2014-03-28 23:52:40 +01:00
Christopher Rosell
ac3501a833 Add StreamIOIterWrapper, a file-like interface to a iterator. 2014-03-03 17:20:26 +01:00
Martin Panter
210ae69e77 Test for reusing input written to buffer 2014-02-14 01:29:51 +00:00
Christopher Rosell
0a95f66e02 tests: Add tests for Buffer. 2014-01-26 12:07:55 +01:00
Christopher Rosell
5c5f9c5449 plugins.stream: Improve parameter parsing. 2013-11-03 17:06:14 +01:00
Christopher Rosell
eedc02cc9e plugins.stream: Support suburls without protocol. 2013-09-26 17:42:28 +02:00
Christopher Rosell
b132610c56 Add the beginnings of a proper plugin API.
For now it contains a way for plugins to load support
modules that are located in the same plugin directory
as the main plugin.
2013-09-19 23:00:50 +02:00
Christopher Rosell
1987828a00 Support more advanced filtering for the synonym excludes.
Fixes #159.
2013-08-16 00:46:47 +02:00
Christopher Rosell
ef6817972c Update tests for plugin.get_streams(). 2013-07-11 02:37:08 +02:00
Christopher Rosell
88cebc881a plugins.stream: Attempt to eval parameters as Python values. 2013-06-22 00:49:14 +02:00
John Peterson
dea4a3ce2c Excluding streams of a protocol that's not in the priority list
because that allow the user to exclude protocols
2013-05-15 05:09:25 +02:00
Christopher Rosell
e874b62541 Add meta-stream "worst" that equals worst stream. 2012-12-29 23:24:59 +01:00
Christopher Rosell
6a8f2341ce Add ability to choose stream type preference.
When there are multiple streams with same name
but different streaming types, a priority system
is used.

API: plugin.get_streams(priority=["rtmp", "hls", ...])
CLI: --stream-priority rtmp,hls,http,akamaihd
2012-12-29 21:48:10 +01:00
Christopher Rosell
91da12464d Update tests. 2012-12-11 17:35:34 +01:00
Christopher Rosell
02fabcb18e Fix regressions in timeout and process checking. 2012-11-27 11:36:25 +01:00
Christopher Rosell
82e5ebe2e7 Add generic stream forwarding plugin.
This plugin add support for akamaihd://, hls://,
hlsvariant:// and rtmp*:// URLs to be forwarded to their
respective *Stream classes.

A argument list, with each argument separated by a space,
can be added after the URL. These formats are possible:

key=1
key=1.0
key=value
key='value'
key="value"
2012-11-27 03:59:18 +01:00
Christopher Rosell
f3f3d1c1f2 Fix unit tests. 2012-11-19 20:35:55 +01:00
Christopher Rosell
443546f30b Add some unit testing. 2012-11-19 03:47:13 +01:00