Code Monkey home page Code Monkey logo

Comments (6)

lichenophile avatar lichenophile commented on September 26, 2024 1

Oh, don't tell me. I'm a fool and thought this project did a yearly 'wrapped' for video media as well as music... but it's just for those who use music/audio libraries isn't it?

Edit: Yep, just read the little sidebar description for the first time. How embarrassing.

from jellyfin-rewind.

Chaphasilor avatar Chaphasilor commented on September 26, 2024 1

Haha yeah maybe I should make it more obvious, could be that it's not clear until you actually get to the Rewind, so it's understandable that you were confused! Sorry about that...

Support for other media types has been requested last year already and is on my ToDo-list, but I simply didn't have the time for that yet. Maybe next year? Maybe I could build two separate apps in parallel, one for music and one for movies and shows?

Either way, this year only music is supported, sadly :(

from jellyfin-rewind.

Chaphasilor avatar Chaphasilor commented on September 26, 2024

Hi @lichenophile!

I'm sorry to hear that. Could you open your browsers developer tools (probably by pressing F12 or Ctrl + Shift + i) and then retry with the debug console open? Seeing the logs and actual errors would help immensely with figuring things out!

Also, could you please share some information about your environment? For example:

  • Browser and version
  • Jellyfin server version
  • Your Jellyfin server's network setup
    • Are you connecting via a local IP (e.g. 192.168.x.y), a local domain name (e.g. jellyfin.local), a public domain/IP without HTTPS, a public domain/IP with a self-signed HTTPS certificate, etc.
  • Which instances of Jellyfin Rewind did you try?
    • You mentioned the http-only version, so http://jellyfin-rewind-http.chaphasilor.xyz ?
    • If you also set up the version I built in #4, how are you hosting and accessing it? Which web server, and at which address are you accessing it?
  • Is your Jellyfin user an admin account?
  • Do you have the "Playback Reporting" plugin installed?

I hope I can figure out the issue!

from jellyfin-rewind.

lichenophile avatar lichenophile commented on September 26, 2024

Server info:

Version: 10.8.9
Operating System: Windows
Architecture: X64

local IP via HTTP
(not accessible from the internet)

I have the Playback Reporting plug-in installed, and set to keep data forever, and it has been functioning as expected over the last year or so since installation.

I have tried both an 'admin' account (which I assume is an account with Allow this user to manage the server enabled), and an account without this checkbox enabled. Console log appears the same for both.

I am also not selecting to import a report from 2022.

Here's my console output (for admin account) on Firefox 121.0 (64-bit) using http://jellyfin-rewind-http.chaphasilor.xyz/:

LOG
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. jellyfin-rewind-http.chaphasilor.xyz
Loading failed for the <script> with source “https://eu.umami.is/script.js”. jellyfin-rewind-http.chaphasilor.xyz:16:105
feature 'intro' created index-IMk8GMBf.js:1053:1534
feature 'total playtime' created index-IMk8GMBf.js:1053:1534
feature 'top song' created index-IMk8GMBf.js:1053:1534
feature 'top songs of the year' created index-IMk8GMBf.js:1053:1534
feature 'days listened to music' created index-IMk8GMBf.js:1053:1534
feature 'top artist' created index-IMk8GMBf.js:1053:1534
feature 'top artists of the year' created index-IMk8GMBf.js:1053:1534
feature 'library stats' created index-IMk8GMBf.js:1053:1534
feature 'top album' created index-IMk8GMBf.js:1053:1534
feature 'top albums of the year' created index-IMk8GMBf.js:1053:1534
feature 'feature delta' created index-IMk8GMBf.js:1053:1534
feature 'top generes of the year' created index-IMk8GMBf.js:1053:1534
feature 'least skipped' created index-IMk8GMBf.js:1053:1534
feature 'most skipped' created index-IMk8GMBf.js:1053:1534
feature 'most successive streams' created index-IMk8GMBf.js:1053:1534
feature 'summary' created index-IMk8GMBf.js:1053:1534
feature 'outro' created index-IMk8GMBf.js:1053:1534
state.settings: 
Proxy { <target>: {…}, <handler>: {…} }
index-IMk8GMBf.js:1003:88
featuresOpen: false index-IMk8GMBf.js:1003:253
state.currentView: start index-IMk8GMBf.js:1081:24
target year: 2023 index-IMk8GMBf.js:1569:1008
commit hash: 5ef5aec index-IMk8GMBf.js:1569:1043
No full Rewind report to restore! Attempting to restore light report... index-IMk8GMBf.js:9:8336
Couldn't restore Rewind report: Error: No Rewind report to restore!
    ba http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:9
    tg http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1075
    ng http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1075
    onload http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1569
    EventHandlerNonNull* http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1569
index-IMk8GMBf.js:1075:2059
state.currentView: server index-IMk8GMBf.js:1081:24
Connected to server! index-IMk8GMBf.js:1075:967
Users: 
Array [ {…}, {…} ]
index-IMk8GMBf.js:1075:1004
state.currentView: user index-IMk8GMBf.js:1081:24
state.currentView: login index-IMk8GMBf.js:1081:24
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. jellyfin-rewind-http.chaphasilor.xyz
this.config.defaultHeaders: 
Object { "X-Emby-Authorization": 'MediaBrowser Client="Jellyfin Rewind", Device="Chrome", DeviceId="90a83627-401a-4f19-bf93-be8ccf521b27", Version="0.1.0", Token=""' }
index-IMk8GMBf.js:1:8450
Successfully logged in as Yulia index-IMk8GMBf.js:1075:1464
playbackReportingSetup: 
Object { installed: true, version: "13.0.0.0", id: "5c53438191a343cb907a35aa02eb9d2c", restartRequired: false, disabled: false, settings: {…}, ignoredUsers: [] }
index-IMk8GMBf.js:1306:158
inspection: 
Object { valid: true, issue: "", action: null }
index-IMk8GMBf.js:1306:215
state.currentView: importReport index-IMk8GMBf.js:1081:24
state.currentView: load index-IMk8GMBf.js:1081:24
Generating Rewind Report for 2023... index-IMk8GMBf.js:9:4004
playbackReportJSON: 
Object { items: [] }
index-IMk8GMBf.js:9:4189
allItemInfo: 
Array []
index-IMk8GMBf.js:9:4293
itemInfo: 
Object {  }
index-IMk8GMBf.js:9:3519
indexedPlaybackReport: 
Object {  }
index-IMk8GMBf.js:9:4402
Object.keys(allItemInfoAdjusted).length: 0 index-IMk8GMBf.js:9:4448
missingPlaybackReportItems: 0 index-IMk8GMBf.js:1:15232
artistInfo: 
Object { 4bfabd0c6bc9e3b516ce1e32479277f3: {…}, 8b604cbf6136666a3413cb9d1ece2e33: {…}, cd48bf0e5e31ffea732fa4493a6a686a: {…}, 267f43fe4b4d52320e5724718bbf1a4f: {…}, 232ab136373d309619b7840a606d06c7: {…}, 5be054c8c4b795ff4d9af8af98e47557: {…}, 077f8e00f1e9c998f6141fff5ae78c3d: {…}, 6938b2fc07230eb58fdd203100a08b43: {…}, 93e775eb37b90203a05728163d56a539: {…}, 29b665fef188ca63c8e5440b5bc9566e: {…}, … }
index-IMk8GMBf.js:9:4571
albumInfo: 
Object {  }
index-IMk8GMBf.js:9:4630
enhancedPlaybackReport: 
Object { items: [], notFound: [] }
index-IMk8GMBf.js:1:23859
enhancedPlaybackReport.notFound: 
Array []
index-IMk8GMBf.js:1:23900
jellyfinRewindReport.generalStats['totalPlaybackDurationByMonth']: 
Object { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, … }
index-IMk8GMBf.js:9:5196
playbackReportAvailable: true index-IMk8GMBf.js:9:5322
playbackReportComplete: false index-IMk8GMBf.js:9:5364
Error while generating the Rewind report: TypeError: w.totalPlayDuration.average is undefined
    ga http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:9
    jr http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1075
    mg http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1455
    <anonymous> http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1455
    o http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    setTimeout handler*Yr/< http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    set http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    fg http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1434
    i http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Zr http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    r http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    el http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    r http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    el http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    r http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    m http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    _up http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    nl http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    i http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    o http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    setTimeout handler*Yr/< http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    set http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    St http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1306
    ms http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1275
index-IMk8GMBf.js:9:7549
Error: Error while generating the report:
    jr http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1075
    mg http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1455
    <anonymous> http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1455
    o http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    setTimeout handler*Yr/< http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    set http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    fg http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1434
    i http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Zr http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    r http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    el http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    r http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    el http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    Vs http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    r http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    m http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    _up http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    nl http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    i http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    o http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    s http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    setTimeout handler*Yr/< http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    d http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    set http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1
    St http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1306
    ms http://jellyfin-rewind-http.chaphasilor.xyz/assets/index-IMk8GMBf.js:1275
index-IMk8GMBf.js:1455:315
state.currentView: rewindGenerationError index-IMk8GMBf.js:1081:24

The No full Rewind report to restore! Attempting to restore light report... and Couldn't restore Rewind report: Error: No Rewind report to restore! occur when initially loading http://jellyfin-rewind-http.chaphasilor.xyz/, before inputting server URL or progressing, perhaps because I have visited and logged in previously (for this log however, I logged out, and reloaded the provided URL to capture this log)

With Error while generating the Rewind report: TypeError: w.totalPlayDuration.average is undefined and Error: Error while generating the report of course occuring after logging in.

I am logging in on a users with blank passwords, but it seems to successfully log in so I don't think that's the issue.

In case it's helpful, I noticed some empty array contents, and also noticed that the only objects returned were artistInfo from my audio library which has had next to zero activity (was mainly set up as a test for audiobooks)
image
image
image

Perhaps I'll try removing the audio library when I get a chance and check for results.

For the locally hosted web server:
I used (after a quick google how to) Windows IIS Manager running on my personal PC (not the Jellyfin machine) to host,
Accessed on the same machine as hosting, via local IP and configured port (Firefox as above).
Which lead to the same Sorry, we couldn't generate your Rewind Report. page.
If I find time I may start the web server back up and check if logs are any different.

from jellyfin-rewind.

Chaphasilor avatar Chaphasilor commented on September 26, 2024

Thanks for the detailed logs and investigation.

Okay, it's definitely not a network issue. Playback Reporting installation seems fine, but for some reason it's not loading any of your media, neither from Playback Reporting nor from Jellyfin itself. Not sure what's going on, but it could be an issue with the music libraries.

You could try creating a new account and giving it access to only your music library, and then trying again. That should at least show some data, unless there is something fundamentally different about your setup...

from jellyfin-rewind.

lichenophile avatar lichenophile commented on September 26, 2024

Dang, I already decided it give it a whirl after deleting that library. I'm fairly sure the music library contained zero entries in playback data, as it was set up as a test long ago, then forgotten.

I had a look at my jellyfin logs out of curiousity though

[2024-01-01 11:20:17.072 +11:00] [INF] [14] Jellyfin.Plugin.PlaybackReporting.Api.PlaybackReportingActivityController: PlaybackReportingActivityController Loaded
[2024-01-01 11:20:17.074 +11:00] [INF] [14] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Default journal_mode for "C:\ProgramData\Jellyfin\Server\data\playback_reporting.db" is "delete"
[2024-01-01 11:20:19.269 +11:00] [INF] [25] Jellyfin.Plugin.PlaybackReporting.Api.PlaybackReportingActivityController: PlaybackReportingActivityController Loaded
[2024-01-01 11:20:19.272 +11:00] [INF] [25] Jellyfin.Plugin.PlaybackReporting.Api.PlaybackReportingActivityController: CustomQuery : "
  SELECT ROWID, *
  FROM PlaybackActivity
  WHERE ItemType=\"Audio\"
    AND datetime(DateCreated) >= datetime('2023-01-01') AND datetime(DateCreated) <= datetime('2023-12-31')
    AND UserId=\"32cc3c153b82478580f2c167ac9ada49\"
  ORDER BY DateCreated ASC
"
[2024-01-01 11:20:19.274 +11:00] [INF] [25] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Default journal_mode for "C:\ProgramData\Jellyfin\Server\data\playback_reporting.db" is "delete"

I can't be sure that the journal_mode logs are normal, but playback reporting works well so they're likely ignorable.

It strikes me as odd that it seems Rewind is only asking for ItemType="Audio" though.
I gave the Custom Query Report a go with Episode in its place (and dropping all the leading \) and the query result came out fine.

I can only guess why Rewind is asking only for audio entries with my set up, I can't think of anything peculiar with my Jellyfin instance.

from jellyfin-rewind.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.