# Develop a custom scanner for libraries

**URL:** <https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703>\
**Category:** Metadata & Adding Files\
**Created:** [January 1, 2021, 9:51am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703 "2021-01-01T09:51:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YesterdaY](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yesterday/32/221899_2.png) [@YesterdaY](https://forums.plex.tv/u/YesterdaY)\
**Post date:** [January 1, 2021, 9:51am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703/1 "2021-01-01T09:51:03Z")

</div>

is it possible to do that? the current scanner doesn’t meet my requirement because it can’t properly arrange my videos. If it is doable, how exactly can I do that? Thanks.

---

<div class="post-metadata">

**Author:** ![YesterdaY](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yesterday/32/221899_2.png) [@YesterdaY](https://forums.plex.tv/u/YesterdaY)\
**Post date:** [January 1, 2021, 10:08am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703/3 "2021-01-01T10:08:21Z")

</div>

Hi, I asked similar questions earlier. This is the link: [For organizing files, need some help!](https://forums.plex.tv/t/for-organizing-files-need-some-help/671588)

I got some answer from you guys about how to arrange the folders, and I also tried to do that. However, it seems like if I want to arrange all the videos under each year. It is not possible unless I made very large effort to achieve that. So I am thinking of developing a new scanner for my situation.

I have done some research that the current scanners were written by pyhon and it is at  
“/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6c22540d5/Scanners.bundle/Contents/Resources/Movies”

so I want to know if I write a new scanner and put in this folder, I can use it right? Thanks.

---

<div class="post-metadata">

**Author:** ![YesterdaY](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yesterday/32/221899_2.png) [@YesterdaY](https://forums.plex.tv/u/YesterdaY)\
**Post date:** [January 1, 2021, 10:17am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703/5 "2021-01-01T10:17:20Z")

</div>

I think I will just develop a custom scanner since I personally think putting all videos under the same directory isn’t a really good organize method. btw, is it possible to submit an application for review on my scanner in the future, so it becomes an official scanner?

---

<div class="post-metadata">

**Author:** ![JCHH](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jchh/32/84326_2.png) [@JCHH](https://forums.plex.tv/u/JCHH)\
**Post date:** [January 1, 2021, 11:01am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703/7 "2021-01-01T11:01:46Z")

</div>

> [@YesterdaY](#):
>
> I think I will just develop a custom scanner

I’m curious; what is it that you scanner will do that Plex’s doesn’t? …you weren’t clear in that other post which library type you were referring to (_Movie_, _TV Show_).

Whilst I name my **Movie**.mp4 files as per Plex’s requirement (using Filebot), I organise them by letter of the alphabet (for easier lookup) and it works fine:

```auto
/Media
  /Movies
    /a
      Ant-Man (2015).mp4
      Apollo 13 (1995).mp4
      Avatar (2009).mp4
      ...
    /b
      Batman Begins (2005).mp4
      Blood Diamond (2006).mp4
      The Bourne Identity (2002).mp4
      ...
    /c
      ...

```

Note: _The Bourne Identity_ is under _B_ (as I am ignoring definite and indefinite articles).

It’s best to follow Plex’s _naming_ **and** _organisation_ for **TV shows** (in any given library) though as Plex will not allow sub-directories for organisational purposes:

```auto
/Media
  /TV Shows
    /Show_name (year)
      /Season 01
        Show_name (year) - S01E01 - Episode_title.mp4
        Show_name (year) - S01E02 - Episode_title.mp4
        ...
      /Season 02
        Show_name (year) - S02E01 - Episode_title.mp4
        Show_name (year) - S02E02 - Episode_title.mp4
        ...
    /Show_name_2 (year)
    ...

```

---

<div class="post-metadata">

**Author:** ![YesterdaY](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yesterday/32/221899_2.png) [@YesterdaY](https://forums.plex.tv/u/YesterdaY)\
**Post date:** [January 1, 2021, 11:11am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703/8 "2021-01-01T11:11:36Z")

</div>

I want to do it like this. And I think making modified scanner can achieve it faster since I have about 50tb files…

Root  
-2020-Jan

- Collection 1
  - Extra  
-OVA1.mp4
  - EP1.mp4
  - EP2.mp4
  - EP3.mp4

- Collection 2
- Collection 3

-2019-Jan

- Collection 4
- Collection 5
- Collection 6

My main point is I only want collections lie under a year(year + month even better) instead of all collections lie under “TV Shows” folder. And also by following the guideline above, I don’t think it will auto match the year of the collections as well. And I really want all collection dates to set automatically on scanning phase.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 1, 2021, 11:11am UTC](https://forums.plex.tv/t/develop-a-custom-scanner-for-libraries/672703/9 "2021-04-01T11:11:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
