58 Commits

Author SHA1 Message Date
2b2135fd43 Do not download images when already present 2020-11-22 19:51:43 +01:00
304eb40a54 Skip movies/shows that don't have imdbIDs
With some explorer that might be the case and it won't work properly
2020-05-08 18:39:20 +02:00
cb6618e9f1 Add the user's last seen date in the admin panel
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-04-16 17:56:22 +02:00
7f91b145eb Cleanup the PublicDir / ImgURLPrefix stuff 2020-04-16 16:47:21 +02:00
9494cf571f Use the new papi lib from polochon 2020-04-16 16:06:19 +02:00
89c6372f58 Fetch the show title while fetching an episode 2020-04-13 17:38:47 +02:00
7be65b6a9a Get the video images from the models
Return the video details embedded in the torrents

This requires the eventers to have the app env
2020-04-13 17:38:47 +02:00
101e68372d Update the new movie function 2020-04-11 10:59:45 +02:00
4206d09954 Fix upsert of torrents
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build was killed
We're missing some infos from the Torrents
We ensure that we set them for now, we'll need to edit the polochon
torrenters so that they put this info
And add a DB constraint, a torrent shouldn't be able to be created
without an imdbID
2020-04-10 17:48:34 +02:00
3bd51765b8 Update papi and polochon to use the new torrent API 2020-04-10 17:09:43 +02:00
199d216323 Add torrent metadata
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-04-08 18:17:25 +02:00
54bbbf84f4 Change the shows image path
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
From img/shows/ttXXXXX-1-1.png and img/shows/ttXXXXX-banner.png
To   img/shows/ttXXXXX/1-1.png and img/shows/ttXXXXX/banner.png

Rewrite things while we're here

Example of scripts to migrate from old path to new path:

dir="shows"
for file in "$dir"/*; do
        # Replace the first - by a / in order to get the new image path
        newfile=$(echo "$file" | sed 's/-/\//')
        # Delete everything after the first - in order to get the show path
        showpath=$(echo "$file" | sed 's/-.*//')
        [ ! -d "$showpath" ] && mkdir "$showpath"
        mv "$file" "$newfile"
done
2020-04-07 17:46:42 +02:00
e5b4639cab Add check of HTTP status when downloading 2020-04-07 17:45:39 +02:00
98eb833dc0 Cleanup movies handling
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Do not delete fields about a movie when we already have them
Movie has no UserID field
2020-04-06 18:20:28 +02:00
72970bd52e Cleanup episodes handling
Do not delete fields about an episode when we already have them
Update the polochon and trakttv libs
2020-04-06 18:20:14 +02:00
91bf3f8cdb Improve GetDetails and Search
We now use the right log object with prefix and return an error on
GetDetails only if the error is Fatal
2020-04-03 14:18:50 +02:00
8a07623668 Edit show.NewWithClient
The func now takes a full polochon.Show instead of just an ImdbID, so
that it we have more than an ImdbID (a TvdbID for example), we can
transmit it to the show.Show
2020-04-03 13:48:12 +02:00
15f95c0d74 Don't return when the unsubscribe fails
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
This rollbacks the behaviour introduced in 09eb97b
2020-03-02 13:09:13 +01:00
1197e6ce6c Move the tokens into the models
By the way, move he sqly package in the models as well
2020-03-02 13:07:04 +01:00
8676ca4df9 Improve the way we launch the server
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-03-01 16:29:56 +01:00
09eb97b235 Remove unused stuff and check more errors
All checks were successful
continuous-integration/drone/push Build is passing
All the things fixed where reported by golangci-lint.
2020-03-01 16:20:06 +01:00
04c3c926ff Update files locations
All checks were successful
continuous-integration/drone/push Build is passing
* use npm instead of yarn
* group frontend stuff
* group backend stuff
2020-02-26 14:38:33 +01:00
7dee9e0a7c Implement the delete user function in the backend 2020-01-07 12:52:40 +01:00
3d8b98482c Add handlers to merge wishlist by polochon
Update polochon package
2019-07-31 13:34:27 +00:00
c5e90d55f3 Return info from DB after a refresh 2019-07-26 12:00:29 +00:00
89a2de2ce0 Add torrent size in backend 2019-07-26 10:48:07 +00:00
a53deebbcf Do not return on torrentsUpdate errors 2019-07-17 13:35:53 +00:00
07823efd74 Fix deadlock in channels
We now close the Channels when its connection is closed so that we never
try to send events into a dead channel
Add a debug handler showing who is subscribed to what
2019-07-17 12:56:31 +00:00
f48292e8e4 Rename notifier in events 2019-07-17 12:47:03 +00:00
3b397300bc Add the Eventers logic and handlers 2019-07-15 10:29:44 +00:00
07eefe1870 Rename backend/backend in backend/models 2019-07-15 08:29:49 +00:00
9c429ba3d4 Put user in backend 2019-07-15 08:29:49 +00:00
2ca1097b77 Better users handlers
Catch empty usernames or password on register
2019-07-15 08:29:49 +00:00
17ef2d8fd6 Add polochons model and handlers 2019-07-15 08:29:49 +00:00
fda1bc076a Add user password edition as admin on all users 2019-07-15 08:27:39 +00:00
88fc8be462 Download episode thumbs 2019-06-27 14:31:33 +02:00
502bf88feb Update asset management in webpack
This hashes every file and forces the browser to download updated
assets.
2019-06-26 14:08:25 +02:00
f3eeaaca0f Stop resizing the show fanart and banner 2019-05-27 17:21:40 +02:00
2bd90e5cb5 events: Add an error channel
The server now sends errors to the client
2019-05-27 12:18:05 +00:00
18127fa3a0 Add WebSockets endpoint /events for torrents 2019-05-23 14:35:42 +00:00
d4e633283d Refresh the imdb ratings in a transaction
https://w000t.me/c140729392
2019-05-15 13:28:52 +00:00
178375eb8d Add polochon metadata in movies and shows 2019-05-11 15:50:50 +02:00
1a30447ab1 Update the configuration reading using polochon's way 2019-05-11 15:17:57 +02:00
49a0dbfea9 Fix refresh of imdb ratings
The connection to the IMDB server used to be cut due to the length of
the ~million upsert
We now download the whole file in memory before begining the upserts
2019-04-22 20:31:14 +02:00
1ecdfc2ba5 web: Add timeout on get requests 2019-04-17 17:30:41 +02:00
97057b43c3 Add IMDB ratings in database
Add method to fetch ratings from imdb every day
Create a new table and a new view to fetch directly the movies and shows
with their imdb ratings
2019-04-17 17:30:27 +02:00
779ef8d211 Add routes to retrieve module's status
One route for the user's polochon modules statuses
One route for the modules statuses of Canape itself
2019-04-13 12:17:13 +02:00
0ac63cdde6 Backend: Change the way we store polochon config 2019-04-12 22:47:24 +02:00
74a526e6c7 Backend implements the Module interface 2019-04-12 22:36:10 +02:00
0be12b2fa1 Change the type of torrent's id from int to string 2018-12-16 10:31:16 +01:00