# Dev/API Corner

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

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

**Page:** 7

---

## [Having multiple error codes popping up](https://forums.plex.tv/t/having-multiple-error-codes-popping-up/673907)

<div class="topic-metadata">

**Author:** [@Marty099](https://forums.plex.tv/u/Marty099)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 3:46pm UTC](https://forums.plex.tv/t/having-multiple-error-codes-popping-up/673907 "2021-01-07T15:46:28Z")

</div>

As was told from Twitter to post here my logs so you guys can take a look thanks again I really need a fix this issue it’s affecting a lot of things (File removed) (File removed) (File removed) (File removed) (File …

---

## [Trying to understand the Scanner code](https://forums.plex.tv/t/trying-to-understand-the-scanner-code/672775)

<div class="topic-metadata">

**Author:** [@YesterdaY](https://forums.plex.tv/u/YesterdaY)\
**Replies:** 0\
**Last updated:** [January 1, 2021, 2:08pm UTC](https://forums.plex.tv/t/trying-to-understand-the-scanner-code/672775 "2021-01-01T14:08:25Z")

</div>

Where can I find the Media, VideoFiles, and Stack class? I couldn’t found them. For the simple case, I am looking at the Plex Video Files Scanner.py now. I have a question. When I try to change this line: movie = Media…

---

## [Setting advance options when creating Show/Series](https://forums.plex.tv/t/setting-advance-options-when-creating-show-series/666982)

<div class="topic-metadata">

**Author:** [@Aaron\_Rn](https://forums.plex.tv/u/Aaron_Rn)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 11:29pm UTC](https://forums.plex.tv/t/setting-advance-options-when-creating-show-series/666982 "2020-12-18T23:29:06Z")

</div>

Hey All… I’m working on a custom scanner/agent for my own use. I’m wondering if there is a way to set advance options when creating Show/Series. I have a library using Series Type videos and I know that when I add a new …

---

## [Dev Help Wanted! Webhook to log time spent watching to Timeular](https://forums.plex.tv/t/dev-help-wanted-webhook-to-log-time-spent-watching-to-timeular/666803)

<div class="topic-metadata">

**Author:** [@saltedlolly](https://forums.plex.tv/u/saltedlolly)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 2:38pm UTC](https://forums.plex.tv/t/dev-help-wanted-webhook-to-log-time-spent-watching-to-timeular/666803 "2020-12-18T14:38:47Z")

</div>

I could really use the help of a developer. I really want a way to keep track of the time I spend watching movies and TV Shows on Plex, and log this time in Timeular. They have an API documented here: https://developers.…

---

## [Transcode at full speed](https://forums.plex.tv/t/transcode-at-full-speed/641373)

<div class="topic-metadata">

**Author:** [@Tolriq](https://forums.plex.tv/u/Tolriq)\
**Replies:** 16\
**Last updated:** [December 12, 2020, 7:44am UTC](https://forums.plex.tv/t/transcode-at-full-speed/641373 "2020-12-12T07:44:48Z")

</div>

Some users of my application wants to be able to download media and transcode them at the same time. While I have no problem controlling transcoding and every aspect of the API it seems that now, the transcoder is autom…

---

## [Automatic Pre-roll Switching](https://forums.plex.tv/t/automatic-pre-roll-switching/662882)

<div class="topic-metadata">

**Author:** [@Hserver1](https://forums.plex.tv/u/Hserver1)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 3:14am UTC](https://forums.plex.tv/t/automatic-pre-roll-switching/662882 "2020-12-08T03:14:43Z")

</div>

Automatic Pre-roll This is a python script intended to allow users to populate a config file with a list of trailers and have the script update their Plex server automatically. The main branch: https://github.com/TheH…

---

## [What...do I need to look into integrating into...to make it a full...?](https://forums.plex.tv/t/what-do-i-need-to-look-into-integrating-into-to-make-it-a-full/659046)

<div class="topic-metadata">

**Author:** [@GazbonicAcid](https://forums.plex.tv/u/GazbonicAcid)\
**Replies:** 0\
**Last updated:** [November 29, 2020, 1:19am UTC](https://forums.plex.tv/t/what-do-i-need-to-look-into-integrating-into-to-make-it-a-full/659046 "2020-11-29T01:19:24Z")

</div>

What plugins do I need to look into integrating into NW.js to make my pseudo client a fully operational web client for Plex?

---

## [Force search for artwork to a specific folder](https://forums.plex.tv/t/force-search-for-artwork-to-a-specific-folder/653482)

<div class="topic-metadata">

**Author:** [@Neosettler](https://forums.plex.tv/u/Neosettler)\
**Replies:** 0\
**Last updated:** [November 14, 2020, 3:35pm UTC](https://forums.plex.tv/t/force-search-for-artwork-to-a-specific-folder/653482 "2020-11-14T15:35:41Z")

</div>

Greetings, I would like to develop a simple plugin for a Windows server that would enable Plex to search in a specific folder for posters. In \_thumbs folder in this case. C:/Movies ----\_thumbs --------Movie1.jpg ----…

---

## [Can I update metadata manually through the API?](https://forums.plex.tv/t/can-i-update-metadata-manually-through-the-api/651675)

<div class="topic-metadata">

**Author:** [@imran0](https://forums.plex.tv/u/imran0)\
**Replies:** 0\
**Last updated:** [November 9, 2020, 12:40am UTC](https://forums.plex.tv/t/can-i-update-metadata-manually-through-the-api/651675 "2020-11-09T00:40:27Z")

</div>

I am tired of having incomplete MP3 metadata (despite having all the data in the ID3) tags. I would like to know if there the API allows updates to media files directly through the API? If yes, can someone point me to t…

---

## [Is it possible to just go directly to my music?](https://forums.plex.tv/t/is-it-possible-to-just-go-directly-to-my-music/647489)

<div class="topic-metadata">

**Author:** [@Kairei](https://forums.plex.tv/u/Kairei)\
**Replies:** 7\
**Last updated:** [October 27, 2020, 3:11pm UTC](https://forums.plex.tv/t/is-it-possible-to-just-go-directly-to-my-music/647489 "2020-10-27T15:11:44Z")

</div>

On my iPhone, I only use Plex to play music. I want to start the app and have it just show my music library. I don’t want any of the home screen stuff about recently added things and movies that I’ll never need on my ph…

---

## [Webhooks + Any way to use with playlists](https://forums.plex.tv/t/webhooks-any-way-to-use-with-playlists/645291)

<div class="topic-metadata">

**Author:** [@jbo44112](https://forums.plex.tv/u/jbo44112)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 5:54pm UTC](https://forums.plex.tv/t/webhooks-any-way-to-use-with-playlists/645291 "2020-10-21T17:54:32Z")

</div>

Hello, I use the webhook for playback events and it works well. And i would like to use it with the playlists. For example, something like: playlist.new playlist.media.add playlist.media.remove etc. Any idea, if i…

---

## [API: How to grab specific amount of entries from XML](https://forums.plex.tv/t/api-how-to-grab-specific-amount-of-entries-from-xml/643179)

<div class="topic-metadata">

**Author:** [@KJThaDon](https://forums.plex.tv/u/KJThaDon)\
**Replies:** 3\
**Last updated:** [October 15, 2020, 8:38am UTC](https://forums.plex.tv/t/api-how-to-grab-specific-amount-of-entries-from-xml/643179 "2020-10-15T08:38:28Z")

</div>

Basically looking at list like this one below, but only want to grab say the top 5 entries instead of the default 100. Can’t seem to find what variable that uses. https://127.0.0.1/library/sections/1/recentlyAdded?X-Ple…

---

## [PHP Grabbing images without token in URL](https://forums.plex.tv/t/php-grabbing-images-without-token-in-url/641817)

<div class="topic-metadata">

**Author:** [@KJThaDon](https://forums.plex.tv/u/KJThaDon)\
**Replies:** 9\
**Last updated:** [October 13, 2020, 1:02am UTC](https://forums.plex.tv/t/php-grabbing-images-without-token-in-url/641817 "2020-10-13T01:02:25Z")

</div>

When opening the image in a new tabs or viewing the source code of the page the images will show the token at the end of the URL parameter. My code below is meant to be that way, but only because I have not figured out a…

---

## [\[Release\] PDST - DVR & Sports Tools](https://forums.plex.tv/t/release-pdst-dvr-sports-tools/634172)

<div class="topic-metadata">

**Author:** [@veritas1000](https://forums.plex.tv/u/veritas1000)\
**Replies:** 7\
**Last updated:** [October 10, 2020, 9:35am UTC](https://forums.plex.tv/t/release-pdst-dvr-sports-tools/634172 "2020-10-10T09:35:14Z")

</div>

This is a set of python tools for helping with/improving Plex DVR handling of Sporting events. One of my lockdown coping mechanisms has been getting into watching way more sports than I used to. At about the same time …

---

## [\[How To\] Request a X-Plex-Token token for your app](https://forums.plex.tv/t/how-to-request-a-x-plex-token-token-for-your-app/84551)

<div class="topic-metadata">

**Author:** [@sander1](https://forums.plex.tv/u/sander1)\
**Replies:** 105\
**Last updated:** [September 25, 2020, 2:13pm UTC](https://forums.plex.tv/t/how-to-request-a-x-plex-token-token-for-your-app/84551 "2020-09-25T14:13:39Z")

</div>

2020-07-01 UPDATE: You can find updated and modern information documented in the "Authenticating with Plex" forum topic. We strongly recommend using that method instead now. Deprecated Information: Every client must …

---

## [Auth0 for wordpress?](https://forums.plex.tv/t/auth0-for-wordpress/615273)

<div class="topic-metadata">

**Author:** [@thu3nn](https://forums.plex.tv/u/thu3nn)\
**Replies:** 0\
**Last updated:** [July 20, 2020, 6:43am UTC](https://forums.plex.tv/t/auth0-for-wordpress/615273 "2020-07-20T06:43:34Z")

</div>

Don’t know how to start this, cause i’m a n00b af… But i have a simpel wordpress site where i want my users to be able to login with their plexaccount. Like you can do with plexpy/Tautulli or Organizr?\` SSO with plex. I…

---

## [Link tv as device](https://forums.plex.tv/t/link-tv-as-device/598445)

<div class="topic-metadata">

**Author:** [@Eloyn](https://forums.plex.tv/u/Eloyn)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 2:42pm UTC](https://forums.plex.tv/t/link-tv-as-device/598445 "2020-08-14T14:42:18Z")

</div>

Hello, I’m doing an app and I need to link a device (for example a Smart TV or Plex on Kodi) which requires to type the token and link that device to a user. Same as plex.tv/link but with my app. If it could be possibl…

---

## [X-Plex-Client-Profile-Extra Documentation](https://forums.plex.tv/t/x-plex-client-profile-extra-documentation/599464)

<div class="topic-metadata">

**Author:** [@Conicaw](https://forums.plex.tv/u/Conicaw)\
**Replies:** 6\
**Last updated:** [July 25, 2020, 5:09am UTC](https://forums.plex.tv/t/x-plex-client-profile-extra-documentation/599464 "2020-07-25T05:09:12Z")

</div>

I want to know about how the X-Plex-Client-Profile-Extra header works, what options are available, what they do, and how they interface with the xml profile files. Looking around a bit, I see these are some of the valid…

---

## [Get current playback timestamp and filename from API?](https://forums.plex.tv/t/get-current-playback-timestamp-and-filename-from-api/597154)

<div class="topic-metadata">

**Author:** [@SirMaster](https://forums.plex.tv/u/SirMaster)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 5:25am UTC](https://forums.plex.tv/t/get-current-playback-timestamp-and-filename-from-api/597154 "2020-07-25T05:25:32Z")

</div>

Can anyone give me an example or point me in the right direction for the API request that I can use to get the current playback timestamp and filename of a currently playing movie?

---

## [How to play/pause from HTTP API](https://forums.plex.tv/t/how-to-play-pause-from-http-api/612309)

<div class="topic-metadata">

**Author:** [@ediof33](https://forums.plex.tv/u/ediof33)\
**Replies:** 2\
**Last updated:** [July 25, 2020, 1:50am UTC](https://forums.plex.tv/t/how-to-play-pause-from-http-api/612309 "2020-07-25T01:50:40Z")

</div>

Hi everyone, I’m currently trying to create a remote control application and I’m struggling to play or pause a video using HTTP API. I managed to sign in with https://plex.tv/users/sign\_in.json and I received my author…

---

## [OAuth2 provider for .Net Core](https://forums.plex.tv/t/oauth2-provider-for-net-core/616709)

<div class="topic-metadata">

**Author:** [@looselyhuman](https://forums.plex.tv/u/looselyhuman)\
**Replies:** 0\
**Last updated:** [July 24, 2020, 3:17pm UTC](https://forums.plex.tv/t/oauth2-provider-for-net-core/616709 "2020-07-24T15:17:33Z")

</div>

Hiyas, Has anyone successfully created a .Net Core web app that uses the standard .Net OAuth2 provider to authenticate (a la Authenticating with Plex)? If not, I’ll be working on adding it to https://github.com/aspnet-…

---

## [iOS app Plex Integration Testers Welcome](https://forums.plex.tv/t/ios-app-plex-integration-testers-welcome/614195)

<div class="topic-metadata">

**Author:** [@jackrwright1\_gmail\_com](https://forums.plex.tv/u/jackrwright1_gmail_com)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 4:49pm UTC](https://forums.plex.tv/t/ios-app-plex-integration-testers-welcome/614195 "2020-07-19T16:49:57Z")

</div>

I’m developing a new feature for my iOS app Movielogue that adds basic Plex Media Server integration. It allows users to scan their library and add movies and TV episodes to their catalog. Tapping on the Plex media icon …

---

## [JBOPS - Just a Bunch Of Plex Scripts](https://forums.plex.tv/t/jbops-just-a-bunch-of-plex-scripts/208680)

<div class="topic-metadata">

**Author:** [@Blacktwin](https://forums.plex.tv/u/Blacktwin)\
**Replies:** 218\
**Last updated:** [July 5, 2020, 6:17pm UTC](https://forums.plex.tv/t/jbops-just-a-bunch-of-plex-scripts/208680 "2020-07-05T18:17:33Z")

</div>

---

## [Authenticating with Plex](https://forums.plex.tv/t/authenticating-with-plex/609370)

<div class="topic-metadata">

**Author:** [@duncanbeeversAdmin](https://forums.plex.tv/u/duncanbeeversAdmin)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 5:08pm UTC](https://forums.plex.tv/t/authenticating-with-plex/609370 "2020-07-01T17:08:29Z")

</div>

Authenticating with Plex Quick Start You’re developing an app that needs access to a user’s Plex account. To do this, you’ll need to get access to the user’s Access Token. This document details how to check whether an Ac…

---

## [Plex Gay Metadata agents](https://forums.plex.tv/t/plex-gay-metadata-agents/609071)

<div class="topic-metadata">

**Author:** [@JP.HUDSON](https://forums.plex.tv/u/JP.HUDSON)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 7:18pm UTC](https://forums.plex.tv/t/plex-gay-metadata-agents/609071 "2020-06-30T19:18:28Z")

</div>

Continuing the discussion from Gay Metadata Agent file format: Check these scrapers: https://github.com/CodyBerenson/PGMA-Modernized

---

## [Kalliope Integration](https://forums.plex.tv/t/kalliope-integration/606702)

<div class="topic-metadata">

**Author:** [@\_10](https://forums.plex.tv/u/_10)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 6:44pm UTC](https://forums.plex.tv/t/kalliope-integration/606702 "2020-06-23T18:44:26Z")

</div>

Hi, I’m wondering if there is any possibility of being able to use the open source Linux based personal assistant Kalliope to control a Plex media server? Kalliope Homepage: https://kalliope-project.github.io/ Would …

---

## [Read music with Youtube fallback and last.fm recommandation](https://forums.plex.tv/t/read-music-with-youtube-fallback-and-last-fm-recommandation/593929)

<div class="topic-metadata">

**Author:** [@azukaar](https://forums.plex.tv/u/azukaar)\
**Replies:** 0\
**Last updated:** [May 22, 2020, 12:05pm UTC](https://forums.plex.tv/t/read-music-with-youtube-fallback-and-last-fm-recommandation/593929 "2020-05-22T12:05:41Z")

</div>

Hello! I would like to use Plex as the core of my media because I am very sick of the Youtube Music recommandation system. I need to write a plugin to achieve what I want thought, and I am looking for direction on how…

---

## [\[Release\] UnicornTranscoder, create a Plex Transcoding Cluster](https://forums.plex.tv/t/release-unicorntranscoder-create-a-plex-transcoding-cluster/281679)

<div class="topic-metadata">

**Author:** [@drouarb](https://forums.plex.tv/u/drouarb)\
**Replies:** 102\
**Last updated:** [May 16, 2020, 8:07am UTC](https://forums.plex.tv/t/release-unicorntranscoder-create-a-plex-transcoding-cluster/281679 "2020-05-16T08:07:34Z")

</div>

Hello everyone, Today we are releasing the UnicornTranscoder, it’s a project composed of 3 software to create a fully scalable Plex transcoding cluster. The project is written in NodeJS. The three components are: Unico…

---

## [Plex Show Episode Count API](https://forums.plex.tv/t/plex-show-episode-count-api/589640)

<div class="topic-metadata">

**Author:** [@KJThaDon](https://forums.plex.tv/u/KJThaDon)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 8:06am UTC](https://forums.plex.tv/t/plex-show-episode-count-api/589640 "2020-05-14T08:06:23Z")

</div>

I am trying to come up with a simple way to grab my total episode count from plex. Here is what I have for total show count, but I need episodes. What needs to be changed? Or is there another way, preferably with PHP. T…

---

## [Why does this post request fail?](https://forums.plex.tv/t/why-does-this-post-request-fail/588123)

<div class="topic-metadata">

**Author:** [@BigDenver](https://forums.plex.tv/u/BigDenver)\
**Replies:** 0\
**Last updated:** [May 10, 2020, 6:58am UTC](https://forums.plex.tv/t/why-does-this-post-request-fail/588123 "2020-05-10T06:58:49Z")

</div>

This is driving me crazy. Trying to import a playlist with a post request. The log shows a parameter missing, but it’s clearly there! Any ideas? May 10, 2020 00:51:33.082 \[14556\] DEBUG - Request: \[XXX.XXX.XXX.XXX:653…

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

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