j4ym0 / nextcloud-tv-show-namer

GNU Affero General Public License v3.0
5 stars 1 forks source link

no files after "scan folder" #12

Closed wuppiwuppi closed 1 year ago

wuppiwuppi commented 1 year ago

It does not recognize any files in my "Scan folder" Selection

Nextcloud: 25.0.1 it is an "external storage" -> local linux file system. Opening the directory in nextcloud shows the files. File endings are mostly mkv.

Also: Should I scan a directory with only one tv-show or can I scan the directory containing all my shows?

j4ym0 commented 1 year ago

I will look into your issue.

You should scan a folder named as the TV show, this folder should contain more folders with season 1 etc or all the files for that show. It is not supported to scan the folder containing all you TV shows as only one show can be scanned at a time


From: wuppiwuppi @.> Sent: Tuesday, November 15, 2022 9:54:19 AM To: j4ym0/nextcloud-tv-show-namer @.> Cc: Subscribed @.***> Subject: [j4ym0/nextcloud-tv-show-namer] no files after "scan folder" (Issue #12)

It does not recognize any files in my "Scan folder" Selection

Nextcloud: 25.0.1 it is an "external storage" -> local linux file system. Opening the directory in nextcloud shows the files. File endings are mostly mkv.

Also: Should I scan a directory with only one tv-show or can I scan the directory containing all my shows?

— Reply to this email directly, view it on GitHubhttps://github.com/j4ym0/nextcloud-tv-show-namer/issues/12, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACDFZFRLFHXCIF6ZJTRA4T3WINMUXANCNFSM6AAAAAASAXZBHY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

j4ym0 commented 1 year ago

After testing "external storage" dir on a local linux file system. It did work for me.

Please make sure your folder you are naming is called the TV Show title.

@wuppiwuppi if you could send over the dir structure and a sample file name i can do some more testing for you. But using a external storage folder did return results for me here on all 25.0.[0-5]

wuppiwuppi commented 1 year ago

Hello,

testing wise it looks like this: lala@lala:/mnt/3tb/_Test$ tree . ├── Alpha House │   └── Season1 │   ├── Alpha.House.S01E01.480p.mkv │   ├── Alpha.House.S01E02.480p.mkv │   ├── Alpha.House.S01E03.480p.mkv │   ├── Alpha.House.S01E04.480p.mkv │   ├── Alpha.House.S01E05.480p.mkv │   ├── Alpha.House.S01E06.480p.mkv │   ├── Alpha.House.S01E07.480p.mkv │   └── Alpha.House.S01E08.480p.mkv └── Breeders 2020 ├── Breeders.S01E01.720p.mkv ├── Breeders.S01E02.720p.mkv └── Breeders.S01E03.720p.mkv

3 directories, 11 files

Regardless of which dir I choose to "Scan Folder" dialog - it will always show "no files". The files are visible in the files app.

j4ym0 commented 1 year ago

Screenshot

@wuppiwuppi Can you confirm if the "no files" message you mean is the above. If so, then clicking choose would scan that folder. The scan folder dialog is a folder selector and will not show any files but will scan the folder/s, then list them after you click choose and the dir is scanned.

wuppiwuppi commented 1 year ago

I tried to click choose in any of these - but there are no results like shown in your screenshot. It stays empty.

edit: undersood - that dialog should not show files. this was not obvious for me.

wuppiwuppi commented 1 year ago

erm logger shows this: {"reqId":"someid","level":0,"time":"2022-11-17T16:02:28+00:00","remoteAddr":"xx","user":"xxxxx","app":"no app in context","method":"POST","url":"/index.php/apps/tvshownamer/scan","message":"Der angemeldete Benutzer muss ein Administrator sein"

=> user needs to be admin?

j4ym0 commented 1 year ago

Perfect, thanks I have managed to recreate the issue.

The issue is because the user is not a member of the admin group. It is not limited to external storage. The issue is also there on the users own directory.

I will look into a work around.

Thank you for reporting!

wuppiwuppi commented 1 year ago

Now it tells me to enter my api key. Which I did. However it does not seem to save it. When I hit refresh (F5) the field is empty again.