Skip to content

Commit a2e118c

Browse files
Merge pull request #115 from RatakondalaArun/feat/112-language-movies
feat/112-language-movies
2 parents 7609e79 + 14d4b3a commit a2e118c

File tree

8 files changed

+39
-23
lines changed

8 files changed

+39
-23
lines changed

.github/workflows/cd.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4.1.1
14+
uses: actions/checkout@v4.2.2
1515

1616
- name: Setup Dart SDK
17-
uses: dart-lang/setup-dart@v1.6.0
17+
uses: dart-lang/setup-dart@v1.7.1
1818

1919
- name: ⏬ Get Depdendencies
2020
run: dart pub get

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4.1.1
14+
uses: actions/checkout@v4.2.2
1515

1616
- name: Setup Dart SDK
17-
uses: dart-lang/setup-dart@v1.6.0
17+
uses: dart-lang/setup-dart@v1.7.1
1818

1919
- name: ⏬ Install dependencies
2020
run: dart pub get

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog
22

3+
## 2.2.3
4+
5+
- Feat allow other languages ​​in video request [#112](https://github.com/RatakondalaArun/tmdb_api/issues/112)
6+
- Dependencies upgrade
7+
38
## 2.2.2
49

510
- Fix backdrop size [#107](https://github.com/RatakondalaArun/tmdb_api/pull/107). Thanks to ([@gutala](https://github.com/gutala))

analysis_options.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
analyzer:
2+
errors:
3+
unnecessary_async: ignore
14
include: package:lint/analysis_options.yaml
25

36
linter:
47
rules:
58
avoid_print: false
69
use_string_in_part_of_directives: true
10+
missing_code_block_language_in_doc_comment: false

lib/tmdb_api.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
///
5151
/// visit [offical API documentation](https://developers.themoviedb.org/3/getting-started/introduction)
5252
///
53-
library tmdb_api;
53+
library;
5454

5555
import 'package:colorize/colorize.dart';
5656
import 'package:dio/dio.dart';

lib/versions/v3/category/movies.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ class Movies extends Category<V3> {
149149
/// Map result = await tmdb.v3.movies.getVideos(103);
150150
///```
151151
///
152-
Future<Map> getVideos(int movieId) {
153-
return _v._query('$_endPoint/$movieId/videos');
152+
Future<Map> getVideos(int movieId, {String? language}) {
153+
return _v._query('$_endPoint/$movieId/videos', optionalQueries: [
154+
'language=${language ?? _v._tmdb.defaultLanguage}',
155+
]);
154156
}
155157

156158
/// Get a list of translations that have been created for a movie.

pubspec.lock

+15-15
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: args
24-
sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
24+
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "2.6.0"
27+
version: "2.7.0"
2828
async:
2929
dependency: transitive
3030
description:
@@ -93,10 +93,10 @@ packages:
9393
dependency: transitive
9494
description:
9595
name: dio_web_adapter
96-
sha256: e485c7a39ff2b384fa1d7e09b4e25f755804de8384358049124830b04fc4f93a
96+
sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78"
9797
url: "https://pub.dev"
9898
source: hosted
99-
version: "2.1.0"
99+
version: "2.1.1"
100100
file:
101101
dependency: transitive
102102
description:
@@ -149,18 +149,18 @@ packages:
149149
dependency: transitive
150150
description:
151151
name: js
152-
sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
152+
sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
153153
url: "https://pub.dev"
154154
source: hosted
155-
version: "0.7.1"
155+
version: "0.7.2"
156156
lint:
157157
dependency: "direct dev"
158158
description:
159159
name: lint
160-
sha256: d758a5211fce7fd3f5e316f804daefecdc34c7e53559716125e6da7388ae8565
160+
sha256: "3cd03646de313481336500ba02eb34d07c590535525f154aae7fda7362aa07a9"
161161
url: "https://pub.dev"
162162
source: hosted
163-
version: "2.3.0"
163+
version: "2.8.0"
164164
logging:
165165
dependency: transitive
166166
description:
@@ -205,10 +205,10 @@ packages:
205205
dependency: transitive
206206
description:
207207
name: package_config
208-
sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67"
208+
sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc
209209
url: "https://pub.dev"
210210
source: hosted
211-
version: "2.1.1"
211+
version: "2.2.0"
212212
path:
213213
dependency: transitive
214214
description:
@@ -229,10 +229,10 @@ packages:
229229
dependency: transitive
230230
description:
231231
name: pub_semver
232-
sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd"
232+
sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
233233
url: "https://pub.dev"
234234
source: hosted
235-
version: "2.1.5"
235+
version: "2.2.0"
236236
shelf:
237237
dependency: transitive
238238
description:
@@ -373,10 +373,10 @@ packages:
373373
dependency: transitive
374374
description:
375375
name: web
376-
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
376+
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
377377
url: "https://pub.dev"
378378
source: hosted
379-
version: "1.1.0"
379+
version: "1.1.1"
380380
web_socket:
381381
dependency: transitive
382382
description:
@@ -410,4 +410,4 @@ packages:
410410
source: hosted
411411
version: "3.1.3"
412412
sdks:
413-
dart: ">=3.5.0 <4.0.0"
413+
dart: ">=3.7.0 <4.0.0"

pubspec.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: tmdb_api
22
description: Dart client-side API package for TMDB.org API (https://www.themoviedb.org/).
3-
version: 2.2.2
3+
version: 2.2.3
44
homepage: https://github.com/RatakondalaArun/tmdb_api.git
55
issue_tracker: https://github.com/RatakondalaArun/tmdb_api/issues
6+
documentation: https://pub.dev/documentation/tmdb_api/latest/
7+
8+
topics:
9+
- tmdb
10+
- themoviedb
611

712
environment:
813
sdk: ">=3.0.0 <4.0.0"

0 commit comments

Comments
 (0)