nliautaud / trakttvstats Goto Github PK
View Code? Open in Web Editor NEWA chrome extension adding various improvements to trakt.tv
License: MIT License
A chrome extension adding various improvements to trakt.tv
License: MIT License
Cache API responses in LocalStorage to retrieve already known data.
Add the possibility to define the URL with some templating. Use Google (I'm Lucky) by default.
Possible format of options string :
First link, Second Link "http://website.com/q=%title%"
Would result to :
<a href="https://www.google.fr/search?btnI&q=%search%+First+Link">First Link</a>
<a href="http://website.com/q=%title%">Second Link</a>
With the following templates strings :
String | Example |
---|---|
%search% | Captain Fantastic 2016 |
%title% | Captain Fantastic |
%year% | 2016 |
%imdbid% | tt234567 |
Based on a suggestion by @chatterer on August 29, 2017 on chrome webstore
By using #39, we noticed setting pt-BR as a language works properly but not pt-br or PT-BR.
However, when submitted by an user in the options windows, the extension always change the entered string to lowercase, making these languages to not work properly.
The case should thus be properly changed to (lowercase)-(UPPERCASE) for these "long" languages codes, when submitted in the extension's options windows
For example, external links for Wallace & Gromit sends a Google search for "Wallace", because the "&" character is interpreted as ending the query parameter.
It should be simple enough to fix : Passing the title through an encodeURIComponent
before creating the external link url.
I'll push a fix in #47 , but still logging the issue in case the PR is not merged.
Each value could be selected/unselected separately :
Movies I've seen made in the 90's that I rated 2, 3 or 4
A field in options would define a maximum character length before truncating the synopsis/biography, avoiding too tall texts.
Hello there ! Looking back into this extension, I just noticed that
Ticking a checkbox in the extension's settings does not display the "checked" state of the checkbox.
(Here, debug is actually enabled, which is why we have access to the local storage option.)
I confirmed this behavior on chromium browsers : Edge 82 and Chrome 79-82
I'll try to look into this and submit a PR, as I believe it is related to the CSS styles applied.
"Posters localization"
Your add-on is great and I think adding (in a different color or in an inner/outer circle) the amount of listed and collected movies to the chart would be awesome (if possible) π
The UI/UX should :
It wasn't really possible to keep the donuts of the first UI as soon as the number of data parameters increased, as the circles would take more space and the complexity increase as well. The second version of the UI allowed to show a large range of numbers in a single screen, regardless of the number of jobs. But the donuts of the first version, by making an emphase on jobs, included the graphs as a part of the author profile, of the biography. A sort of "Mr. X is a director, writer, producer born in...".
UI 1 (up to v0.3) | UI 2 (v0.4...) |
---|---|
As the number of parameters will rise again with the someday inclusion of type (movies/shows) #11 and duration #12, a third version need to be designed, and should mix the advantages of each previous one. It will require the selection of which information would be available at the same time.
Would add three modes accessible in the options :
Hi there,
Just noticed that while clicking a custom external link on a TV show or Movie works fine, clicking one on an episode opens a Google search for the name of the episode, without the show title, which is unlikely to find a correct match.
It should add the show title in the search query, along with the episode, I believe.
Expose the existing debug mode with an option.
On movie/show page, show other release dates in addition to the original country release.
Use chrome.webNavigation.onHistoryStateUpdated
, see background.js in 3279aa3
Package is invalid. Details: "Extension icon" icon.png "can not be loaded."
Trakt improver DEV
Version de l'application : 0.4 alpha
Version du client : 5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.105 Safari/537.36 Vivaldi/1.93.941.3
Date du rapport : 29/08/17 01:53
cenobite chatterer on chrome webstore
Translate every dates in the user language.
Ex 30 aoΓ»t 2017 Γ 21:44
instead of August 30, 2017 21:44
.
Would apply on seen/rated dates under posters and on buttons, on comments...
Merged PR #50 is breaking vip blocks with a forced position: unset
.
before | after |
---|---|
In overall, the posters filtering would probably require more thought.
The movie page title could show up to three different titles : the world-wide title as indicated by Trakt, the original title and a localized title. The movies thumbs would show up to two of them.
Display : The alternate titles are shown one below the other, according to the options.
Options : The options allow to choose which title to show and in what order.
Localization options/Original title | Don't show | Display below | Display first |
---|---|---|---|
Localization disabled | The Movie 2000 | The Movie 2000 μν (original title) |
μν 2000 The Movie (world-wide title) |
Localization enabled | The Movie 2000 Le Film (FR) |
The Movie 2000 μν (original title) Le Film (FR) |
μν 2000 The Movie (world-wide title) Le Film (FR) |
Localized title first | Le Film 2000 (FR) The Movie (world-wide title) |
Le Film 2000 (FR) The Movie (world-wide title) μν (original title) |
Le Film 2000 (FR) μν (original title) The Movie (world-wide title) |
These options give some possibilities without using a more complex input. But a more advanced UX could be a drag-and-drop list ordering, with a "disabled-pool" where the different options could be taken from or moved to. This would allow more possibilities, including the use of localized title only, original title only, etc.
Technical notes
When the original title is required, TMDb would be called even without a language code given. And the "on page load" / "on hover" setting should be accessible in such case.
original_title
title
(exists if i18nLang
is set) or alternatives_titles.title
(appended trough append_to_response
)The corresponding alternatives_titles
seems to be more correct than the localized title
. The second could be used as a fallback for the first if necessary. Ex: Joint Security Area gives JSA (Joint Security Area) as french title and JSA, Joint Security Area as french alternative_title.
Issue/remarks
Original suggestion by @chatterer on August 29, 2017 on chrome webstore
De-duplicate items in multiple job categories when pertinent.
fixed in development branch v0.3, see 181c2d6
Instead of hiding them.
done in development branch v0.3, see 181c2d6
I've seen some weird Localized posters matching.
I attach 2 images. one with original posters and one with translated.
Look the series The Amazing World of Gumball and Modern Family,
it matches Gumball with a poster of Sherlock holmes and Modern Family with The secret of the lakes.
I've put in settings language ES for spanish
Some users forgets to click save before reloading the page.
statistics are not working, for when a new update? The extension already deserved, the long time we waited.
blank date release
https://prnt.sc/L2hb2e6MyxnG
With the api caching (#28) allowing to distinguish between items who require an API call and those who don't, and by looking for items visible on viewport, the on load and on hover modes can be removed and replaced by a smartest behavior :
Each entry has [data-total-runtime]
, so getting the data is straightforward.
But howto UI/UX ?
The most useful feature may be a toggle/select to show/hide/switch between short works and feature-length works. It could work in conjunction with a runtime graph.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.