Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Jul 31, 2022
1 parent 937a8da commit bfa8ab7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Demo installation can be found [here](https://movary-demo.leepeuker.dev/) (login
2. [Plex Scrobbler](#plex-scrobbler)
3. [trakt.tv Sync](#trakttv-sync)
4. [letterboxd.com Import](#letterboxd-import)
4. [IMBb.com Sync](#imdb-sync)
5. [Development](#development)

<a name="#about"></a>
Expand Down Expand Up @@ -150,8 +151,6 @@ Example:
- `--threshold`
Maximum number of movies to sync
<a name="#development"></a>
<a name="#plex-scrobbler"></a>
### Plex Scrobbler
Expand Down Expand Up @@ -197,6 +196,25 @@ You can import your watch history and ratings from letterboxd.com.
Visit the movary settings page `/settings/letterboxd` for more instructions
<a name="#imdb-sync"></a>
### IMDb Sync
Sync imdb ratings.
Example:
`docker exec movary php bin/console.php imdb:sync`
**Flags:**
- `--hours`
Only movie ratings which were last synced X hours or longer ago will be synced
- `--threshold`
Maximum number of movie ratings to sync
<a name="#development"></a>
## Development
### Setup
Expand Down
21 changes: 13 additions & 8 deletions templates/page/movie.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,20 @@
</div>

<div class="carousel" style="display: flex;margin-top: 0.9rem;margin-bottom: 0.8rem">
<div style="display: flex; align-items: center;cursor:pointer;" onclick="window.open('{{ movie.imdbUrl }}', '_blank')">
<img src="/images/imdb-logo.svg" style="width: 3rem">
<p style="margin-bottom: 0rem;margin-left: 0.3rem;text-align: center"><span class="fw-bold">{{ movie.imdbRatingAverage|default('-') }}</span><span
class="fw-lighter">/{{ movie.imdbRatingVoteCount|default('-') }}</span></p>
</div>
<div style="display: flex; align-items: center;margin-left: 0.8rem;cursor:pointer;" onclick="window.open('{{ movie.tmdbUrl }}', '_blank')">
{% if movie.imdbRatingAverage is not null %}
<div style="display: flex; align-items: center;cursor:pointer;" onclick="window.open('{{ movie.imdbUrl }}', '_blank')">
<img src="/images/imdb-logo.svg" style="width: 3rem">
<p style="margin-bottom: 0;margin-left: 0.3rem;text-align: center">
<span class="fw-bold">{{ movie.imdbRatingAverage|default('-') }}</span><span class="fw-lighter">/{{ movie.imdbRatingVoteCount|default('-') }}</span>
</p>
</div>
{% endif %}
<div style="display: flex; align-items: center;{% if movie.imdbRatingAverage is not null %}margin-left: 0.8rem;{% endif %}cursor:pointer;"
onclick="window.open('{{ movie.tmdbUrl }}', '_blank')">
<img src="/images/tmdb-logo.svg" style="width: 2rem">
<p style="margin-bottom: 0rem;margin-left: 0.3rem;text-align: center"><span class="fw-bold">{{ movie.tmdbRatingAverage|default('-') }}</span><span
class="fw-lighter">/{{ movie.tmdbRatingVoteCount|default('-') }}</span></p>
<p style="margin-bottom: 0;margin-left: 0.3rem;text-align: center">
<span class="fw-bold">{{ movie.tmdbRatingAverage|default('-') }}</span><span class="fw-lighter">/{{ movie.tmdbRatingVoteCount|default('-') }}</span>
</p>
</div>
</div>

Expand Down

0 comments on commit bfa8ab7

Please sign in to comment.