Coder Social home page Coder Social logo

noeldemartin / media-kraken Goto Github PK

View Code? Open in Web Editor NEW
69.0 5.0 6.0 6.24 MB

Track your movies with Media Kraken

Home Page: https://noeldemartin.github.io/media-kraken/

License: GNU General Public License v3.0

JavaScript 3.42% HTML 2.95% Vue 39.10% TypeScript 53.51% Shell 0.11% SCSS 0.90%
solid solid-app vue pwa autonomous-data media-tracker solid-protocol

media-kraken's Introduction

Media Kraken Build Status

Track your movies with Media Kraken: noeldemartin.github.io/media-kraken

Do you want to see how it works? Check out my presentation at Solid World February:

Media Kraken @ Solid World

To learn more about implementation details and development status, read the docs.

media-kraken's People

Contributors

noeldemartin avatar veyndan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

media-kraken's Issues

Does not work with Community Solid Server 1.0.0

[Please explain what you were trying to do when this error appeared.]

I was experimenting with the Community Solid Server (just two commits after the v1.0.0 tag). It seems that CSS pods are created without a lot of the structure that came OOTB with pods at inrupt.net and I actually hit a couple of problems due to that before getting to this error. The first problem was that the app couldn't find a storage. Using https://penny.vincenttunru.com/, I added that property to my profile which then got me to another error because there was no private type index. I tried to address this by using Penny to see how this was set up in my inrupt.net pod and then to duplicate it in my CSS pod which worked to the extent that it changed the error message I got to the one I'm reporting here. After first hitting that, I manually created /blitzkrieg/movies/ using Penny but that did not help.

Stack trace:

e@https://noeldemartin.github.io/media-kraken/js/0.60c393e8.worker.js?__WB_REVISION__=1ea26ee9042b4a85c3b0386d545dacc4:23:269325
t/this.fetch/</<@https://noeldemartin.github.io/media-kraken/js/0.60c393e8.worker.js?__WB_REVISION__=1ea26ee9042b4a85c3b0386d545dacc4:23:273331
s/</<@https://noeldemartin.github.io/media-kraken/js/0.60c393e8.worker.js?__WB_REVISION__=1ea26ee9042b4a85c3b0386d545dacc4:23:272135
s/<@https://noeldemartin.github.io/media-kraken/js/0.60c393e8.worker.js?__WB_REVISION__=1ea26ee9042b4a85c3b0386d545dacc4:23:272240
s@https://noeldemartin.github.io/media-kraken/js/0.60c393e8.worker.js?__WB_REVISION__=1ea26ee9042b4a85c3b0386d545dacc4:23:271023

Add ability to add private ratings to movies

I currently use iMDB to store movies that I've watched by adding a rating to the movie. I rate them to remind myself what I thought of the movie, as sometimes it's been several years since I last watched it. I'd love to be able to add ratings to movies that I've watched (i.e., an integer from 1-10), as I want to move away from iMDB without losing this ability. These ratings would be completely private to me (i.e., I don't care about having the aggregate user rating of a film that iMDB offers).

I'm not sure whether this is in the scope of the project or not, but if it is, I'd be happy to have a go at implementing it!

Re: Malformed RDF document found at https://marielmat.inrupt.net/settings/privateTypeIndex.ttl - Unexpected "<!doctype" on line 1.

[I was trying to connect through Solid. I might be the one who is doing something wrong, I just don't know what to do. Thank you.]

Stack trace:

e@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:23:268462
value/</<@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:1:167394
parse/<@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:1:93079
b@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:23:322084
_tokenizeToEnd@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:23:321918
tokenize/<@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:23:323263
r/t.setImmediate/<@https://noeldemartin.github.io/media-kraken/js/0.8f526441.worker.js?__WB_REVISION__=31e5f15474593079090a88dfc301cde1:23:42698

Login unauthorized

I am very new to solid, and unselected the access options on login. Other than clearing cache, it would be a great help if the error message offered to let you revisit the permissions screen as a button-click option.

Support TV series

I just discovered this nice app, congratz!
In the past, I was also tinkering about such a Solid app but for TV series.

These links can be useful I think:

This would fit nicely into the data schema as schema:TVSeries instead of schema:Movie.

I saw this was on your roadmap somehow, maybe we can discuss a bit to proceed with this?

wrong privateTypeIndex creation

Using media-kraken app on css https://solidweb.me/bourgeoa/, /settings/privateTypeIndex.ttl is missing.
Your app creates one but with a different name /settings/privateTypeIndex without .ttl at the end.

Is it on purpose ? I thought that to stay on NSS structure would make thinks simpler as it is already tricky.

CSS changed idp location

Trying to login to https://solidweb.me/bourgeoa/ with media-kraken it failed with InvalidRequest: invalid_request

​ GET https://solidweb.me/bourgeoa/profile/ 401
​ GET https://solidweb.me/idp/ 404
 GET https://noeldemartin.github.io/media-kraken/login 404
 Service worker has been registered.
 GET https://solidweb.me/bourgeoa/profile/ 401
​ GET https://solidweb.me/idp/ 404

I don't if you were aware of this :
https://gitter.im/solid/community-server?at=617443052197144e8480c4b0

Support for Letterboxd?

Hi! I would like to take media kraken for a more thorough spin. However, I keep track of my movies in https://letterboxd.com/

I'm not sure how, but it would be nice to be able to import movies from there!

Import from Netflix

Looking at Solidflix it seems like it's possible to import movies from Netflix, so it'd be nice to implement that as well.

Using media-kraken with a read-only profile document

I'm trying to use my "historical" WebID (https://champin.net/#pa) with Solid. The WebID document is hosted on a regular web server, so it is not writable.

I get the error below, that says "Can't create type index without a writable profile document". Since my profile contains a link to a writable type index, and since I don't expect media-kraken to modify my profile document itself, I don't think that this should be a problem.

More generally, is it OK for a Solid application to assume that they have permission to modify my profile document?

Error: Can't create type index without a writable profile document

t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:41502
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
i@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127177
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127381
o/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127440
o/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127320
mb@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:41266
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:43346
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
i@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127177
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127381
o/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127440
o/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127320
d709/</</e.createPrivateTypeIndex@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:50511
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:286509
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
n@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45015
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45219
i/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45278
i/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45158
e@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:286686
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:285611
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
n@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45015
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45219
i/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45278
i/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45158
e@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:286237
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:282538
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
n@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45015
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45219

Invalid URL error with CSS

Getting this error after logging in to my local CSS pod at http://localhost:3000/example/profile/card#me.

e: Error fetching mediacontainers/movies/ (Failed to construct 'URL': Invalid URL)
    at e [as constructor] (https://noeldemartin.github.io/media-kraken/js/0.216e3a97.worker.js?__WB_REVISION__=741f9877ffef5844033ac0f983ee11ee:39:192379)
    at new e (https://noeldemartin.github.io/media-kraken/js/0.216e3a97.worker.js?__WB_REVISION__=741f9877ffef5844033ac0f983ee11ee:39:308917)
    at t.<anonymous> (https://noeldemartin.github.io/media-kraken/js/0.216e3a97.worker.js?__WB_REVISION__=741f9877ffef5844033ac0f983ee11ee:39:312923)
    at https://noeldemartin.github.io/media-kraken/js/0.216e3a97.worker.js?__WB_REVISION__=741f9877ffef5844033ac0f983ee11ee:39:311727
    at Object.throw (https://noeldemartin.github.io/media-kraken/js/0.216e3a97.worker.js?__WB_REVISION__=741f9877ffef5844033ac0f983ee11ee:39:311832)
    at s (https://noeldemartin.github.io/media-kraken/js/0.216e3a97.worker.js?__WB_REVISION__=741f9877ffef5844033ac0f983ee11ee:39:310620)

It looks like there's a failed request (401 Unauthorized) to profile/ which makes sense because the default CSS pod template does not have an acl for profile/ and the acl for it's container only has a default acl for the owner of the pod.

A few requests later, Kraken sends a patch to http://localhost:3000/example/profile/card with:

INSERT DATA {
            <http://localhost:3000/example/profile/card#me> <http://www.w3.org/ns/solid/terms#privateTypeIndex> <undefinedsettings/privateTypeIndex> .
        }

So i'm assuming the error comes from undefinedsettings/privateTypeIndex.

It looks like that could be coming from the SolidUserProfile fetched by NoelDeMartin/solid-utils not having any storageUrls. However, I can see in the request to my pod at example/ there is a correct header with:
Link: <http://www.w3.org/ns/pim/space#Storage>; rel="type".

But then it still makes another requests to http://localhost:3000/ (the parent of http://localhost:3000/example/) within this while loop meaning that storageUrls is still empty.

CleanShot 2022-03-04 at 11 00 41

Full url used as subject in turtle resource

The recent closing of solid.community server had the consequence that your app did not work anymore.
I had to rename all the movies using the new solidcommunity.net as subject in turtle file.

I tried to make a relative link, but it does not seem to work.
Is it in relation with the service worker ?

Add a sharing link for MediaKraken itself

You have an IMDB link. How about a similar link, but which takes a person to Media Kraken website, with the IMDB Id as a parameter, so that I can just load my collection and then have the option of adding to it the movie in question, and those without a Solid account can get a solid account somewhere, then come back and do the same.

#enhancement #onboarding

Improve data location

In the current version, the movies container will be created under /movies if users don't have a movies contaione declared in their type index. I'm not sure if there's a standard way of doing it, but there have been conversations mentioning that /app/data/movies would be a better default.

Feel free to add any comments/suggestions about this, I probably won't change it at least until I'm finished with the app I'm working on.

I have been exploring letting advanced users choose the location, so I'll probably do that as well. But defaults are still important, given that most users won't bother changing them.

TypeError: Cannot read properties of undefined (reading '@value')

[Please explain what you were trying to do when this error appeared.]
I was tyring to access media.kraken https://noeldemartin.github.io/media-kraken/ from my computer. Earlier today I accessed it from the phone. This second time, from the computer, I got a message with an option to migrate (my content or something?) and that if I didn't migrate it would cause unexpected behavior with the app. I chose to migrate and got the error message below:

Stack trace:

    at Proxy.<anonymous> (https://noeldemartin.github.io/media-kraken/js/0.86b415cd.worker.js?__WB_REVISION__=3c88596dc40416fa8ab7f54da6468da8:32:35334)
    at l (https://noeldemartin.github.io/media-kraken/js/0.86b415cd.worker.js?__WB_REVISION__=3c88596dc40416fa8ab7f54da6468da8:39:176583)
    at Generator._invoke (https://noeldemartin.github.io/media-kraken/js/0.86b415cd.worker.js?__WB_REVISION__=3c88596dc40416fa8ab7f54da6468da8:39:177913)
    at Generator.next (https://noeldemartin.github.io/media-kraken/js/0.86b415cd.worker.js?__WB_REVISION__=3c88596dc40416fa8ab7f54da6468da8:39:177012)
    at r (https://noeldemartin.github.io/media-kraken/js/0.86b415cd.worker.js?__WB_REVISION__=3c88596dc40416fa8ab7f54da6468da8:39:52607)
    at s (https://noeldemartin.github.io/media-kraken/js/0.86b415cd.worker.js?__WB_REVISION__=3c88596dc40416fa8ab7f54da6468da8:39:52810)

TransactionInactiveError: Failed to execute 'getAllKeys' on 'IDBObjectStore': The transaction is inactive or finished.

[Please explain what you were trying to do when this error appeared.]

Stack trace:

https://noeldemartin.github.io/media-kraken/js/chunk-vendors.951aeeef.js:58:155702
https://noeldemartin.github.io/media-kraken/js/chunk-vendors.951aeeef.js:58:162280
https://noeldemartin.github.io/media-kraken/js/chunk-vendors.951aeeef.js:58:159190
a@https://noeldemartin.github.io/media-kraken/js/chunk-vendors.951aeeef.js:58:158092
promiseReactionJob@[native code]

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.