From 6f8fe9626c81712366962f91c3e5eebb604a5f74 Mon Sep 17 00:00:00 2001 From: DoarMihai Date: Fri, 15 Aug 2025 19:10:52 +0300 Subject: [PATCH] progress --- README.md | 93 ++++++------------ .../MovieProcessingService.php | 8 +- public/img/no_poster.png | Bin 0 -> 6212 bytes resources/views/home.blade.php | 12 ++- resources/views/movie/index.blade.php | 7 +- 5 files changed, 53 insertions(+), 67 deletions(-) create mode 100644 public/img/no_poster.png diff --git a/README.md b/README.md index 1a4c26b..fd27c0a 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,35 @@ -

Laravel Logo

+## Commands -

-Build Status -Total Downloads -Latest Stable Version -License -

+#### Fetch TMDB export file +``` +php artisan tmdb:fetch-export movies +php artisan tmdb:fetch-export tv_series +``` -## About Laravel +### Populate the list of movies/tv_series to fetch +``` +php artisan tmdb:fetch-export-items movie} +php artisan tmdb:fetch-export-items show +``` -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: +### Fetch item data +``` +php artisan processing:fetch-item-data {type=movie/tv_series} {batch=50} {job=Details} {tmdbId?} +php artisan processing:fetch-item-data movie 50 Details +php artisan processing:fetch-item-data movie 50 AlternativeTitles +php artisan processing:fetch-item-data movie 50 Credits +php artisan processing:fetch-item-data movie 50 Images +php artisan processing:fetch-item-data movie 50 Keywords +php artisan processing:fetch-item-data movie 50 Releases +php artisan processing:fetch-item-data movie 50 Translations +php artisan processing:fetch-item-data movie 50 Similar +php artisan processing:fetch-item-data movie 50 Recommendations +php artisan processing:fetch-item-data movie 50 Reviews +php artisan processing:fetch-item-data movie 50 Lists +php artisan processing:fetch-item-data movie 50 Changes +php artisan processing:fetch-item-data movie 50 Videos +php artisan processing:fetch-item-data movie 50 WatchProviders +php artisan processing:fetch-item-data movie 50 ExternalIds +php artisan processing:fetch-item-data movie 50 ContentRatings -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). - -Laravel is accessible, powerful, and provides tools required for large, robust applications. - -## Learning Laravel - -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. - -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. - -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. - -## Laravel Sponsors - -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). - -### Premium Partners - -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[WebReinvent](https://webreinvent.com/)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Jump24](https://jump24.co.uk)** -- **[Redberry](https://redberry.international/laravel/)** -- **[Active Logic](https://activelogic.com)** -- **[byte5](https://byte5.de)** -- **[OP.GG](https://op.gg)** - -## Contributing - -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Code of Conduct - -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +``` diff --git a/app/Service/MediaProcessing/MovieProcessingService.php b/app/Service/MediaProcessing/MovieProcessingService.php index b4abfa1..a90f1dc 100644 --- a/app/Service/MediaProcessing/MovieProcessingService.php +++ b/app/Service/MediaProcessing/MovieProcessingService.php @@ -825,13 +825,19 @@ class MovieProcessingService implements ProcessingInterface $tmdbPerson = $this->personApi->getPerson($castPerson['id']); if (!empty($tmdbPerson)) { + $knownForDepartment = $tmdbPerson['known_for_department'] ?? null; + + if ($knownForDepartment !== null) { + $knownForDepartment = trim($knownForDepartment, '"'); + } + $personData = array_merge($personData, [ 'biography' => $tmdbPerson['biography'], 'birtday' => $tmdbPerson['birthday'], 'deathday' => $tmdbPerson['deathday'], 'homepage' => $tmdbPerson['homepage'], 'imdb_id' => $tmdbPerson['imdb_id'], - 'known_for_department' => $tmdbPerson['known_for_department'] ? json_encode($tmdbPerson['known_for_department']) : null, + 'known_for_department' => $knownForDepartment, 'also_known_as' => $tmdbPerson['also_known_as'] ? json_encode($tmdbPerson['also_known_as']) : null, 'place_of_birth' => $tmdbPerson['place_of_birth'], ]); diff --git a/public/img/no_poster.png b/public/img/no_poster.png new file mode 100644 index 0000000000000000000000000000000000000000..dc88cdde75e2df68e2ad18dc0206b49b3387f45c GIT binary patch literal 6212 zcmc&(c{tQxxF3=wTS{3cBB`u}F!n8?kbRfRo-JGUog!mNmdU;*YYp-vsg!BKFqlD> z?8X>E_Q5@0_x_&eKKGCNJom5rhiB$H=X}pO?|VM)`+47wr-u64%qO@{z+f=un>w0C z;By29qtc+K2H*M}642m-%GXF+ooe{IXasm*@Yb>Pg~1q4Lw{5-R4ykB#zDNPsb=yx zmzUOdcp85!^BobN3&2E`HqQ!}z z=4wExY4aZg22PgTH_mjJzpPf0ri|u?1;b@!9Jw+oXx-^{7GEcG$0G}kXkO8g1(@Jb zOjg~6f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_edLt=g!P#BlWNfMcM^a=L|Zi2)w00n0U3NPm+j)zG1#c4q4vqh zCj)gTfX)Wlfj01fR6xld9oAbO#e~&rV{1sxn@$Y9s>u#y%Jb|+jbLT`Wicje zjIkB7R`3N?3+Q6IjIBl~)q;WS&l3EKZq&pl;a0mG;Dh{}$B4R5E`W$ctQ&}xsA?OE z0lb-G96(vf|3@p>MlcbewP)Ly5yChB8i4%MTHw~T&&de@KRw&`86g-Xo>!_ZR0sP^ zL+X{8STphvj6eV%NHeE-4Dixe3~Y%-Mz|bFT`q!3wW?YQq``QwmH^^lpH=KgYtst1 ziDDsFb3_1-&-hWojuxl((YhBOfR8~Irf0mKo(P}#d~}mDK(G@4f&o96`=#cDHD;pm zD89)8Vm3BlN1$j$encE>1RgEzIWr;lL>b6!efr~~x+s-*o^`~!Dwj0VdF4DM-lUhKbWFQ8E(C%gXRyfE6 zB-g))gB>sffcA}c=wml#K6u1f7ZjscwOcp^PWaJu8s`7_Z|ZD}9i~5Gu&eNWf5ey# z;}h1KV#bL`-ILE^{9LtakAmdCsj_Ny)2{7qkffHOMH!9iUF}=VIywy}U#T7=K%QEV zNukxh`X{8XLN?S*SGK!AFYy-G$3NZvPW__%Gsv7EirBQOxPTP @foreach($trendingMovies as $movie)
- {{ $movie->title }} + + {{ $movie->title }} +
-
{{ $movie->title }}
+ +
+ {{ $movie->title }} +
+
- {{ number_format($movie->vote_average, 1) }} + {{ number_format($movie->vote_average, 1) }} / {{ $movie->vote_count }}
diff --git a/resources/views/movie/index.blade.php b/resources/views/movie/index.blade.php index 21f19ba..7e4f2d3 100644 --- a/resources/views/movie/index.blade.php +++ b/resources/views/movie/index.blade.php @@ -13,7 +13,12 @@