Skip to content

Commit

Permalink
Merge pull request #84 from leepeuker/add-imdb-rating
Browse files Browse the repository at this point in the history
Add imdb rating
  • Loading branch information
leepeuker authored Jul 31, 2022
2 parents 1c9167b + 36602ae commit ff37acc
Show file tree
Hide file tree
Showing 24 changed files with 2,501 additions and 199 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ app_jobs_process:

# Tests
#######
test: test_phpcs test_psalm test_phpstan
test: test_phpcs test_psalm test_phpstan test_phpunit

test_phpcs:
make exec_app_cmd CMD="vendor/bin/phpcs --standard=./settings/phpcs.xml"
Expand All @@ -97,3 +97,6 @@ test_phpstan:

test_psalm:
make exec_app_cmd CMD="vendor/bin/psalm -c ./settings/psalm.xml --show-info=false"

test_phpunit:
make exec_app_cmd CMD="vendor/bin/phpunit -c ./settings/phpunit.xml --testsuite unit"
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
1 change: 1 addition & 0 deletions bin/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
$application->add($container->get(Movary\Command\UserUpdate::class));
$application->add($container->get(Movary\Command\UserList::class));
$application->add($container->get(Movary\Command\ProcessJobs::class));
$application->add($container->get(Movary\Command\SyncImdb::class));

$application->run();
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,25 @@
"vlucas/phpdotenv": "^5.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6",
"phpstan/phpstan": "^1.5",
"vimeo/psalm": "^4.22"
"phpstan/phpstan-phpunit": "^1.1",
"vimeo/psalm": "^4.22",
"psalm/plugin-phpunit": "^0.16",
"webmozarts/strict-phpunit": "^7.2"
},
"autoload": {
"psr-4": {
"Movary\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Unit\\Movary\\": "tests/unit/"
}
},
"config": {
"sort-packages": true
}
Expand Down
Loading

0 comments on commit ff37acc

Please sign in to comment.