Skip to content

TV Search By Network #402

Closed
Closed

Description

@bbakermmc

The search network = network seems to return everything. Not sure if Im using it right?

NETWORKS = ["Disney+", "Apple TV+", "Netflix"]

for networkName in NETWORKS:
    print(networkName)
    for playlist in plex.playlists():
        if playlist.title == networkName:
            r = requests.delete('{}/playlists/{}?X-Plex-Token={}'.format(baseurl, networkName, token))
            print('{} already exists. Deleting it and will rebuild.'.format(networkName))

tv_shows_section: Union[ShowSection, PhotoSection, MovieSection, MusicSection] = plex.library.section('TV Shows')
episode_list = []
for networkName in NETWORKS:
    print(networkName)
    for show in tv_shows_section.searchShows(network=networkName):
        print(show)

Activity

  1. blacktwin commented on Nov 16, 2019

    @blacktwin
    Collaborator

    First, to delete a playlist use playlist.delete().

    Second, it's actually studio not network. But you were correct to assume that network would be what you should use as thats what's in the ALLOWED_FILTERS for the ShowSection. network just needs to be changed to studio in the ALLOWED_FILTERS and your search then needs to change to

    for networkName in NETWORKS:
        print(networkName)
        for show in tv_shows_section.searchShows(studio=networkName):
            print(show)

    If you want to create the PR for it go for it. If not I can. Up to you, it's literally one string.

  2. added a commit that references this issue on Nov 29, 2019
  3. self-assigned this
    on Dec 2, 2019
  4. Hellowlol commented on May 11, 2020

    @Hellowlol
    Collaborator

    @blacktwin Still working on this?

  5. blacktwin commented on May 12, 2020

    @blacktwin
    Collaborator

    Not really, but I can. I borked the original PR. I can't remember why/how.

  6. blacktwin commented on Sep 9, 2020

    @blacktwin
    Collaborator

    Should be resolved with #518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions