<commit_before>**************
Mopidy-Youtube
**************

.. image:: https://img.shields.io/pypi/v/Mopidy-Youtube.svg?style=flat
    :target: https://pypi.python.org/pypi/Mopidy-Youtube/
    :alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/Mopidy-Youtube.svg?style=flat
    :target: https://pypi.python.org/pypi/Mopidy-Youtube/
    :alt: Number of PyPI downloads

.. image:: https://img.shields.io/travis/mopidy/mopidy-youtube/develop.svg?style=flat
    :target: https://travis-ci.org/mopidy/mopidy-youtube
    :alt: Travis CI build status

.. image:: https://img.shields.io/coveralls/mopidy/mopidy-youtube/develop.svg?style=flat
   :target: https://coveralls.io/r/mopidy/mopidy-youtube?branch=develop
   :alt: Test coverage


Mopidy extension that plays sound from Youtube.


Installation
============

Make sure you already have the GStreamer plugins, if not you can install it by
running::

    $ sudo apt-get install gstreamer0.10-plugins-bad


Install by running::

    $ pip install Mopidy-Youtube


How to use
==========

Simply use search for filename in your MPD client or add Youtube url to
playlist prefixed by ``yt:``.

Example: ``yt:http://www.youtube.com/watch?v=Njpw2PVb1c0``

Example for playlist:
``yt:http://www.youtube.com/playlist?list=PLeCg_YDclAETQHa8VyFUHKC_Ly0HUWUnq``


If resolving stops working
==========================

Update pafy library::

   pip install pafy -U


Project resources
=================

- `Source code <https://github.com/mopidy/mopidy-youtube>`_
- `Issue tracker <https://github.com/mopidy/mopidy-youtube/issues>`_
- `Download development snapshot <https://github.com/mopidy/mopidy-youtube/archive/develop.tar.gz#egg=Mopidy-Youtube-dev>`_


Changelog
=========

v2.0.1 (UNRELEASED)
-------------------

- Update links to GitHub repository.

v2.0.0 (2015-04-01)
-------------------
<commit_msg>docs: Add PR #35 to changelog<commit_after>**************
Mopidy-Youtube
**************

.. image:: https://img.shields.io/pypi/v/Mopidy-Youtube.svg?style=flat
    :target: https://pypi.python.org/pypi/Mopidy-Youtube/
    :alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/Mopidy-Youtube.svg?style=flat
    :target: https://pypi.python.org/pypi/Mopidy-Youtube/
    :alt: Number of PyPI downloads

.. image:: https://img.shields.io/travis/mopidy/mopidy-youtube/develop.svg?style=flat
    :target: https://travis-ci.org/mopidy/mopidy-youtube
    :alt: Travis CI build status

.. image:: https://img.shields.io/coveralls/mopidy/mopidy-youtube/develop.svg?style=flat
   :target: https://coveralls.io/r/mopidy/mopidy-youtube?branch=develop
   :alt: Test coverage


Mopidy extension that plays sound from Youtube.


Installation
============

Make sure you already have the GStreamer plugins, if not you can install it by
running::

    $ sudo apt-get install gstreamer0.10-plugins-bad


Install by running::

    $ pip install Mopidy-Youtube


How to use
==========

Simply use search for filename in your MPD client or add Youtube url to
playlist prefixed by ``yt:``.

Example: ``yt:http://www.youtube.com/watch?v=Njpw2PVb1c0``

Example for playlist:
``yt:http://www.youtube.com/playlist?list=PLeCg_YDclAETQHa8VyFUHKC_Ly0HUWUnq``


If resolving stops working
==========================

Update pafy library::

   pip install pafy -U


Project resources
=================

- `Source code <https://github.com/mopidy/mopidy-youtube>`_
- `Issue tracker <https://github.com/mopidy/mopidy-youtube/issues>`_
- `Download development snapshot <https://github.com/mopidy/mopidy-youtube/archive/develop.tar.gz#egg=Mopidy-Youtube-dev>`_


Changelog
=========

v2.0.1 (UNRELEASED)
-------------------

- Update links to GitHub repository.

- Don't return ``None`` values to Mopidy when lookup or search returns invalid
  data. In Mopidy 1.0, this caused a crash. In Mopidy 1.1, this caused warnings
  about the YouTube backend returning invalid data. (PR: #35)

v2.0.0 (2015-04-01)
-------------------

{'fraction_non_alphanumeric': 0.19077620967741934, 'fraction_numerical': 0.01310483870967742, 'mean_word_length': 3.799274486094317, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 22, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5025116', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1371, 'n_words': 298}