Jump to content

Interesting time error :-)


Recommended Posts

julianH1966
Posted

Hi All,

Emby seems to be working ok, with a couple of issues.

The library seems not to be updating correctly. I've checked the file system, here's a file I just added 

julianh@emby:/mnt/films$ ls -l Noel*
total 1935744
-rwxrwxrwx 1 root root      55236 Nov 28 20:17  fanart.jpg
-rwxrwxrwx 1 root root 1981156952 Dec 16  2019 'Noel (2004) WEBRip-1080p.mp4'
-rwxrwxrwx 1 root root       6996 Nov 29 14:22 'Noel (2004) WEBRip-1080p.nfo'
-rwxrwxrwx 1 root root     788299 Nov 28 20:17  poster.jpg
julianh@emby:/mnt/films$

but it's not seen in the most recent movies. But if I search for it I can find it, but the date added is wrong, 2019, as you can see in the film-date screen shot. So it must be date / time

Here's the response from the terminal session on the emby server;

julianh@emby:~$ date
Mon 29 Nov 17:38:57 UTC 2021
 

I also checked the date on the Virtual machine that send the file to it.

julianh@importer:~$ date
Mon Nov 29 17:40:17 UTC 2021

Here's a bit more on the Emby's time

julianh@emby:~$ timedatectl status
               Local time: Mon 2021-11-29 17:44:59 UTC
           Universal time: Mon 2021-11-29 17:44:59 UTC
                 RTC time: Mon 2021-11-29 17:44:59
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Here's a bit more on the Importer's time

julianh@importer:~$ timedatectl status
               Local time: Mon 2021-11-29 17:46:00 UTC
           Universal time: Mon 2021-11-29 17:46:00 UTC
                 RTC time: Mon 2021-11-29 17:46:00
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

So I can see what's happening. For some reason the file's being added with the wrong date, which means it's not a "most recently added" in this case it's 2 years old. So in effect it's behaving correctly, but obviously it's not, the date added isn't correct.

Any suggestions?

Thanks

Julian

 

film-date.png

embyserver.txt

julianH1966
Posted (edited)

Solution. - Well it turned out not to be 😞

But interesting none the less.

------

I spotted it as I was writing the end of the topic, but thought I'd leave it here in case someone else has the problem.

Sabnzbd wasn't changing the actual movie file, The rest, the .nfs, poster etc files were generated "now" but the actual media file kept the original date, not the "downloaded" date.

There's an option in sabnzbd "ignore_unrar_dates" which "Normally unpacked files will get the date/time stamp they have in the archive. If you set this option, the files will get the date/time of unpacking."
So the media file's date will be changed to the downloaded date.

To change the date to "now" here's the command

find /mnt/films/Noel\ \(2004\)/ -print -exec touch {} \;
/mnt/films/Noel (2004)/
/mnt/films/Noel (2004)/fanart.jpg
/mnt/films/Noel (2004)/Noel (2004) WEBRip-1080p.mp4
/mnt/films/Noel (2004)/Noel (2004) WEBRip-1080p.nfo
/mnt/films/Noel (2004)/poster.jpg
root@importer:/mnt/films# ls -l Noel\ \(2004\)/
total 1935744
-rwxrwxrwx 1 root root 1981156952 Nov 29 18:55 'Noel (2004) WEBRip-1080p.mp4'
-rwxrwxrwx 1 root root       6996 Nov 29 18:55 'Noel (2004) WEBRip-1080p.nfo'
-rwxrwxrwx 1 root root      55236 Nov 29 18:55  fanart.jpg
-rwxrwxrwx 1 root root     788299 Nov 29 18:55  poster.jpg
root@importer:/mnt/films#


Problem solved. I hope it helps someone else 🙂

Julian

Edited by julianH1966
julianH1966
Posted (edited)

Okay. So that's not the solution, the libraries updating, but the latest isn't. I triggered Scheduled Tasks -> Scan media files.

So I am stuck now, I just went to the library and selected "scan media Files" it'll take a couple of days, but it's haveing files added to it by Sabnzbd too.

Is there anything I've missed?

Thanks

Julian 

Edit - The last file did work after all, the first test was when a file was half downloaded. I think this needs more time/ tests. The second file worked fine. I'll come back in a couple of days when a better test is done. sorry for the delay. -

Julian

 

Edited by julianH1966
Posted
On 11/29/2021 at 1:56 PM, julianH1966 said:

Hi All,

Emby seems to be working ok, with a couple of issues.

The library seems not to be updating correctly. I've checked the file system, here's a file I just added 

julianh@emby:/mnt/films$ ls -l Noel*
total 1935744
-rwxrwxrwx 1 root root      55236 Nov 28 20:17  fanart.jpg
-rwxrwxrwx 1 root root 1981156952 Dec 16  2019 'Noel (2004) WEBRip-1080p.mp4'
-rwxrwxrwx 1 root root       6996 Nov 29 14:22 'Noel (2004) WEBRip-1080p.nfo'
-rwxrwxrwx 1 root root     788299 Nov 28 20:17  poster.jpg
julianh@emby:/mnt/films$

but it's not seen in the most recent movies. But if I search for it I can find it, but the date added is wrong, 2019, as you can see in the film-date screen shot. So it must be date / time

Here's the response from the terminal session on the emby server;

julianh@emby:~$ date
Mon 29 Nov 17:38:57 UTC 2021
 

I also checked the date on the Virtual machine that send the file to it.

julianh@importer:~$ date
Mon Nov 29 17:40:17 UTC 2021

Here's a bit more on the Emby's time

julianh@emby:~$ timedatectl status
               Local time: Mon 2021-11-29 17:44:59 UTC
           Universal time: Mon 2021-11-29 17:44:59 UTC
                 RTC time: Mon 2021-11-29 17:44:59
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Here's a bit more on the Importer's time

julianh@importer:~$ timedatectl status
               Local time: Mon 2021-11-29 17:46:00 UTC
           Universal time: Mon 2021-11-29 17:46:00 UTC
                 RTC time: Mon 2021-11-29 17:46:00
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

So I can see what's happening. For some reason the file's being added with the wrong date, which means it's not a "most recently added" in this case it's 2 years old. So in effect it's behaving correctly, but obviously it's not, the date added isn't correct.

Any suggestions?

Thanks

Julian

 

film-date.png

embyserver.txt 268.53 kB · 0 downloads

Hi there, have you explored advanced library options where you can control where the date added value comes from?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...