# Dev/API Corner

**URL:** https://forums.plex.tv/c/dev-community/dev-api-corner/61.md?page=4

[Latest](https://forums.plex.tv/latest.md) · [Categories](https://forums.plex.tv/categories.md) · [Tags](https://forums.plex.tv/tags.md)

**Page:** 5

---

## [Python code to copy a playlist from one plex server to another](https://forums.plex.tv/t/python-code-to-copy-a-playlist-from-one-plex-server-to-another/828539)

<div class="topic-metadata">

**Author:** [@clifwlkr](https://forums.plex.tv/u/clifwlkr)\
**Replies:** 0\
**Last updated:** [January 27, 2023, 8:32pm UTC](https://forums.plex.tv/t/python-code-to-copy-a-playlist-from-one-plex-server-to-another/828539 "2023-01-27T20:32:31Z")

</div>

Well I have been waiting for this feature for a long time and it has not been available. I have two servers in my two different houses, as I want to localize the traffic due to internet issues and just speed rather than…

---

## [Plexapi download filename](https://forums.plex.tv/t/plexapi-download-filename/774478)

<div class="topic-metadata">

**Author:** [@jmruiz](https://forums.plex.tv/u/jmruiz)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 10:29am UTC](https://forums.plex.tv/t/plexapi-download-filename/774478 "2022-12-01T10:29:06Z")

</div>

Hi, does anyone know how to deal with the plexapi download method when the file has characters not allowed by the filesystem in a filename (i.e., “:” in Windows)? I’ve tried using the keep\_original\_filename True and Fa…

---

## [Need help with metadata agent development](https://forums.plex.tv/t/need-help-with-metadata-agent-development/619057)

<div class="topic-metadata">

**Author:** [@ReenigneArcher](https://forums.plex.tv/u/ReenigneArcher)\
**Replies:** 11\
**Last updated:** [November 26, 2022, 3:47pm UTC](https://forums.plex.tv/t/need-help-with-metadata-agent-development/619057 "2022-11-26T15:47:42Z")

</div>

I’m writing my first metadata agent. It’s a conversion from a javascript code I have that writes an xml file. So I have the code in python to collect information from a url such as: Title Description/Summary Rating (M…

---

## [How can I add text reviews for Movie metadata?](https://forums.plex.tv/t/how-can-i-add-text-reviews-for-movie-metadata/820078)

<div class="topic-metadata">

**Author:** [@TscReiji](https://forums.plex.tv/u/TscReiji)\
**Replies:** 0\
**Last updated:** [November 26, 2022, 10:56am UTC](https://forums.plex.tv/t/how-can-i-add-text-reviews-for-movie-metadata/820078 "2022-11-26T10:56:07Z")

</div>

I see the official agent can fetch reviews of a movie like this: I’m wondering if I can add reviews with the agent developed myself. Anyone can help? Thanks for the absence of dev-documentation for decades, I still …

---

## [API: /clients endpoint returns no clients](https://forums.plex.tv/t/api-clients-endpoint-returns-no-clients/819420)

<div class="topic-metadata">

**Author:** [@krommes](https://forums.plex.tv/u/krommes)\
**Replies:** 8\
**Last updated:** [November 23, 2022, 10:32pm UTC](https://forums.plex.tv/t/api-clients-endpoint-returns-no-clients/819420 "2022-11-23T22:32:45Z")

</div>

I’m new to Plex. For a custom coding project (Crestron), I’m using Postman to explore what is known about the unofficial API, principally using the info at Home · Arcanemagus/plex-api Wiki · GitHub. I am using Plex Web…

---

## [Custom agent setting metadata but Plex displays worng metadata](https://forums.plex.tv/t/custom-agent-setting-metadata-but-plex-displays-worng-metadata/814389)

<div class="topic-metadata">

**Author:** [@Kronos1591](https://forums.plex.tv/u/Kronos1591)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 8:42am UTC](https://forums.plex.tv/t/custom-agent-setting-metadata-but-plex-displays-worng-metadata/814389 "2022-10-11T08:42:09Z")

</div>

I’m trying to create my own metadata agent for saved youtube videos but for some reason when the metadata is set on my videos it does not apply in plex even though when I log everything it seems to have no issues. When I…

---

## [\*SOLVED\* Why is $\_REQUEST blank now?](https://forums.plex.tv/t/solved-why-is-request-blank-now/811406)

<div class="topic-metadata">

**Author:** [@PalsyP](https://forums.plex.tv/u/PalsyP)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 8:37pm UTC](https://forums.plex.tv/t/solved-why-is-request-blank-now/811406 "2022-09-19T20:37:27Z")

</div>

I save what I add to my Plex to a database via a webhook page… It was working fine with $data = json\_decode($\_REQUEST\['payload'\]); However, it returns empty - not sure when this started to happen. Has something change…

---

## [Webhooks: Can't get new track data](https://forums.plex.tv/t/webhooks-cant-get-new-track-data/811021)

<div class="topic-metadata">

**Author:** [@faruz](https://forums.plex.tv/u/faruz)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 8:45am UTC](https://forums.plex.tv/t/webhooks-cant-get-new-track-data/811021 "2022-09-16T08:45:23Z")

</div>

It seems that the library.new webhook event only reports the artist name and not the track details when it’s reporting music information. Is this something that can be fixed?

---

## [Tautulli - Monitor your Plex Media Server](https://forums.plex.tv/t/tautulli-monitor-your-plex-media-server/225242)

<div class="topic-metadata">

**Author:** [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)\
**Replies:** 1402\
**Last updated:** [July 7, 2022, 10:19pm UTC](https://forums.plex.tv/t/tautulli-monitor-your-plex-media-server/225242 "2022-07-07T22:19:44Z")

</div>

Tautulli A python based web application for monitoring, analytics and notifications for Plex Media Server. Features Responsive web design viewable on desktop, tablet and mobile web browsers. Themed to complement Plex/W…

---

## [Tautulli - unable to open Plex log file?](https://forums.plex.tv/t/tautulli-unable-to-open-plex-log-file/798985)

<div class="topic-metadata">

**Author:** [@msklut](https://forums.plex.tv/u/msklut)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 3:48pm UTC](https://forums.plex.tv/t/tautulli-unable-to-open-plex-log-file/798985 "2022-06-29T15:48:26Z")

</div>

Recently setup Tautulli on a Plex Server running on Raspberry Pi/Linux. Everything is working as expected, except the ‘logs’ are not seen by Tautulli. Even with the complete folder path for the Plex Media Server logs, it…

---

## [API: Users & Play History](https://forums.plex.tv/t/api-users-play-history/796964)

<div class="topic-metadata">

**Author:** [@alsotacit](https://forums.plex.tv/u/alsotacit)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 9:41am UTC](https://forums.plex.tv/t/api-users-play-history/796964 "2022-06-14T09:41:34Z")

</div>

Hi, I have a couple of questions about users & play history: When getting a list of users there seem to be two endpoints I can use: https://plex.tv/api/home/users https://plex.tv/api/users What is the intent of havi…

---

## [Access plex metadata for a GUID / plex://show/5d9c07ee6c3e37001ecd2f34 for example](https://forums.plex.tv/t/access-plex-metadata-for-a-guid-plex-show-5d9c07ee6c3e37001ecd2f34-for-example/793502)

<div class="topic-metadata">

**Author:** [@seer\_tenedos](https://forums.plex.tv/u/seer_tenedos)\
**Replies:** 4\
**Last updated:** [May 24, 2022, 12:32am UTC](https://forums.plex.tv/t/access-plex-metadata-for-a-guid-plex-show-5d9c07ee6c3e37001ecd2f34-for-example/793502 "2022-05-24T00:32:30Z")

</div>

Basically i noticed that while the same episode on different servers normally gets the same GUID i have seen cases where the same episode has different GUIDs as well. I assume that GUID points to metadata about the show…

---

## [\[Release\] MyAnimeList.net Metadata Agent](https://forums.plex.tv/t/release-myanimelist-net-metadata-agent/741190)

<div class="topic-metadata">

**Author:** [@Fribbtastic](https://forums.plex.tv/u/Fribbtastic)\
**Replies:** 17\
**Last updated:** [May 21, 2022, 12:17pm UTC](https://forums.plex.tv/t/release-myanimelist-net-metadata-agent/741190 "2022-05-21T12:17:38Z")

</div>

In 2014 I released the first version of the MyAnimeList Metadata Agent for Plex to the Public. Since then, a lot has happened and the Agent has seen quite a lot of changes and iterations to what it was at that time. Bu…

---

## [Selecting External Player on Android TV and Using External Subtitles from an External Player](https://forums.plex.tv/t/selecting-external-player-on-android-tv-and-using-external-subtitles-from-an-external-player/727232)

<div class="topic-metadata">

**Author:** [@ArtisanLRO](https://forums.plex.tv/u/ArtisanLRO)\
**Replies:** 3\
**Last updated:** [July 8, 2021, 2:23am UTC](https://forums.plex.tv/t/selecting-external-player-on-android-tv-and-using-external-subtitles-from-an-external-player/727232 "2021-07-08T02:23:06Z")

</div>

I’m the developer of jidoujisho, an Android language learning application for Japanese immersion learners. In it, users can watch videos and get instant dictionary look-ups by tapping or dragging on subtitles and they ca…

---

## [Audiobook library: mark album as played](https://forums.plex.tv/t/audiobook-library-mark-album-as-played/788366)

<div class="topic-metadata">

**Author:** [@alebianco](https://forums.plex.tv/u/alebianco)\
**Replies:** 0\
**Last updated:** [April 15, 2022, 6:06am UTC](https://forums.plex.tv/t/audiobook-library-mark-album-as-played/788366 "2022-04-15T06:06:13Z")

</div>

Hi, I’m having some issues with the /:/scrobble and /:/unscrobble APIs when trying to mark a music album as played. The logs report that the album has been scrobbled and report no errors but in the library the play cou…

---

## [Want to Create a Custom Scanner](https://forums.plex.tv/t/want-to-create-a-custom-scanner/776312)

<div class="topic-metadata">

**Author:** [@Smitchell6879](https://forums.plex.tv/u/Smitchell6879)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 9:39am UTC](https://forums.plex.tv/t/want-to-create-a-custom-scanner/776312 "2022-02-14T09:39:32Z")

</div>

So I am finding mixed answers to this , I see in the forum it seems to be a year plus since the last question has be asked about them and before I spend alot of time deciphering your current python agents I would like to…

---

## [How does token transient function?](https://forums.plex.tv/t/how-does-token-transient-function/772185)

<div class="topic-metadata">

**Author:** [@lanthade](https://forums.plex.tv/u/lanthade)\
**Replies:** 0\
**Last updated:** [January 21, 2022, 9:32pm UTC](https://forums.plex.tv/t/how-does-token-transient-function/772185 "2022-01-21T21:32:11Z")

</div>

A properly formatted GET request to /security/token generates a transient token that is required for other commands to work. I’m looking to better understand how this token works. I can tell via testing that it’s not l…

---

## [Changes to allow custom agent to work with Plex TV Series scanner?](https://forums.plex.tv/t/changes-to-allow-custom-agent-to-work-with-plex-tv-series-scanner/771007)

<div class="topic-metadata">

**Author:** [@plurk](https://forums.plex.tv/u/plurk)\
**Replies:** 4\
**Last updated:** [January 16, 2022, 9:52pm UTC](https://forums.plex.tv/t/changes-to-allow-custom-agent-to-work-with-plex-tv-series-scanner/771007 "2022-01-16T21:52:03Z")

</div>

The introduction of the new Plex TV Series scanner has given Plex the ability to rename seasons. Awesome. I am having trouble getting it work however. I can set the title metadata for the season \[ie: metadata.season\[…

---

## [3P Plex Audio Player for Samsung Galaxy Watch (Tizen)](https://forums.plex.tv/t/3p-plex-audio-player-for-samsung-galaxy-watch-tizen/408597)

<div class="topic-metadata">

**Author:** [@Axikor](https://forums.plex.tv/u/Axikor)\
**Replies:** 69\
**Last updated:** [January 12, 2022, 5:26am UTC](https://forums.plex.tv/t/3p-plex-audio-player-for-samsung-galaxy-watch-tizen/408597 "2022-01-12T05:26:43Z")

</div>

Hey Plex users, I am currently building a Tizen based App for the Samsung Galaxy Watch, and would be interested to hear of what kind of interest there is. I became tired of currying my S9 around the gym in the morning, …

---

## [Automatic Plex Prerolls](https://forums.plex.tv/t/automatic-plex-prerolls/766198)

<div class="topic-metadata">

**Author:** [@Hserver1](https://forums.plex.tv/u/Hserver1)\
**Replies:** 2\
**Last updated:** [January 7, 2022, 2:56am UTC](https://forums.plex.tv/t/automatic-plex-prerolls/766198 "2022-01-07T02:56:37Z")

</div>

Automatic-Pre-roll-GUI An automated pre-roll python program for Plex Features Monthly, Weekly, and Daily Schedules Built in Holiday Schedules Custom Holiday and event schedules Easy to use GUI Preview Install…

---

## [API search firstCharacterKey in section](https://forums.plex.tv/t/api-search-firstcharacterkey-in-section/760531)

<div class="topic-metadata">

**Author:** [@murxer](https://forums.plex.tv/u/murxer)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 2:55pm UTC](https://forums.plex.tv/t/api-search-firstcharacterkey-in-section/760531 "2021-11-27T14:55:00Z")

</div>

Hello can someone tell me how the url for firstCharacter is? “/library/sections/ID/all?firstCharacterKey=R” is not working! greeting murxer

---

## [HI/CC/SDH Subtitles naming convention](https://forums.plex.tv/t/hi-cc-sdh-subtitles-naming-convention/627100)

<div class="topic-metadata">

**Author:** [@morpheus65535](https://forums.plex.tv/u/morpheus65535)\
**Replies:** 5\
**Last updated:** [November 17, 2021, 9:48pm UTC](https://forums.plex.tv/t/hi-cc-sdh-subtitles-naming-convention/627100 "2021-11-17T21:48:36Z")

</div>

I know it’s been discussed multiple time but I would like to talk to Plex devs about it. I’m the developer behind Bazarr, a subtitles search/downloading tool and I’m currently reworking the naming of Hearing-Impaired su…

---

## [PHP XML display of shows not all episodes](https://forums.plex.tv/t/php-xml-display-of-shows-not-all-episodes/755346)

<div class="topic-metadata">

**Author:** [@KJThaDon](https://forums.plex.tv/u/KJThaDon)\
**Replies:** 0\
**Last updated:** [November 4, 2021, 5:36am UTC](https://forums.plex.tv/t/php-xml-display-of-shows-not-all-episodes/755346 "2021-11-04T05:36:47Z")

</div>

I’m trying to get a display like the Plex Home screen “Recently Added in TV Shows” I can use the XML like below, but this will output every episode recently added rather than the show with a count of recent episodes. Wh…

---

## [Android Intents](https://forums.plex.tv/t/android-intents/715054)

<div class="topic-metadata">

**Author:** [@p924s87](https://forums.plex.tv/u/p924s87)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 8:03pm UTC](https://forums.plex.tv/t/android-intents/715054 "2021-11-02T20:03:56Z")

</div>

Hi Everyone, Our TiVo took a ■■■■, so I got my wife to switch over to Plex with a pair of HDHomeRun Primes. Works great. But I have elderly relatives who come to visit and stay in the guest room and trying to navigate t…

---

## [Android INTENTS](https://forums.plex.tv/t/android-intents/755047)

<div class="topic-metadata">

**Author:** [@juraj.nyiri\_gmail.com](https://forums.plex.tv/u/juraj.nyiri_gmail.com)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 7:58pm UTC](https://forums.plex.tv/t/android-intents/755047 "2021-11-02T19:58:22Z")

</div>

Does anyone know what is a correct intent to launch Live TV Channel in Plex? I am able to launch any TV Show, TV Show season, TV Show episode or Movie. Replace SERVER\_ID and KEY. You can get both from, for example, URL…

---

## ["400: Bad Request" response when requesting some audio files](https://forums.plex.tv/t/400-bad-request-response-when-requesting-some-audio-files/742407)

<div class="topic-metadata">

**Author:** [@\_lch](https://forums.plex.tv/u/_lch)\
**Replies:** 7\
**Last updated:** [October 26, 2021, 4:41am UTC](https://forums.plex.tv/t/400-bad-request-response-when-requesting-some-audio-files/742407 "2021-10-26T04:41:31Z")

</div>

Hi, Some users of my app (Prologue) are encountering an issue when attempting to stream some mp4/m4a/m4b files. If the metadata for the item looks like this: { "ratingKey": "497476", "key": "/library/metadata/…

---

## [Looking to hire python PlexAPI coder to fix existing script and more](https://forums.plex.tv/t/looking-to-hire-python-plexapi-coder-to-fix-existing-script-and-more/749135)

<div class="topic-metadata">

**Author:** [@phoop](https://forums.plex.tv/u/phoop)\
**Replies:** 0\
**Last updated:** [October 7, 2021, 11:04pm UTC](https://forums.plex.tv/t/looking-to-hire-python-plexapi-coder-to-fix-existing-script-and-more/749135 "2021-10-07T23:04:13Z")

</div>

I’m looking for a python coder with experience with PlexAPI to fix a script that “Does Things” with subtitles. I have existing code, docs, specs, github repos, etc., and communicate clearly about code projects. (former …

---

## [Metadata.studio wont update in the album](https://forums.plex.tv/t/metadata-studio-wont-update-in-the-album/744514)

<div class="topic-metadata">

**Author:** [@Elio71](https://forums.plex.tv/u/Elio71)\
**Replies:** 1\
**Last updated:** [October 1, 2021, 2:38pm UTC](https://forums.plex.tv/t/metadata-studio-wont-update-in-the-album/744514 "2021-10-01T14:38:30Z")

</div>

I am improving an music agent, for my uses and it gets the metadata.studio, but the album just wont update with the info, can someone point me to the right direction? It is getting it: the code is this: It is blan…

---

## [Help with API fetch() requests never ending when server offline](https://forums.plex.tv/t/help-with-api-fetch-requests-never-ending-when-server-offline/723212)

<div class="topic-metadata">

**Author:** [@alxwlfe](https://forums.plex.tv/u/alxwlfe)\
**Replies:** 7\
**Last updated:** [September 30, 2021, 1:04am UTC](https://forums.plex.tv/t/help-with-api-fetch-requests-never-ending-when-server-offline/723212 "2021-09-30T01:04:58Z")

</div>

Hi all, hoping someone can point me in the right direction as I’m struggling to find a solution: I’m using Airtable Automations + scripts (JavaScript) to grab my latest watched media and send to Trakt via a script (I d…

---

## [Plex python errors](https://forums.plex.tv/t/plex-python-errors/746656)

<div class="topic-metadata">

**Author:** [@jelwell](https://forums.plex.tv/u/jelwell)\
**Replies:** 1\
**Last updated:** [September 28, 2021, 5:45pm UTC](https://forums.plex.tv/t/plex-python-errors/746656 "2021-09-28T17:45:35Z")

</div>

I’m trying to use the inbuilt python function sum() in my plex agent. I’m on a Mac. https://docs.python.org/2.7/library/functions.html#sum But I get the following error: NameError: name ‘sum’ is not defined I outpu…

[Previous page](https://forums.plex.tv/c/dev-community/dev-api-corner/61.md?page=3)

[Next page](https://forums.plex.tv/c/dev-community/dev-api-corner/61.md?page=5)
