Skip to content

Commit 9087f90

Browse files
committed
Support missing data.items value
1 parent cd989f2 commit 9087f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Importer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default class YouTubeImport {
165165
...baseOptions,
166166
...idOptions,
167167
});
168-
if (data.items.length > 1) {
168+
if (!data.items || data.items.length > 1) {
169169
throw new NotFound('That channel could not be found. Please check that you provided the '
170170
+ 'full URL to the channel.');
171171
}

0 commit comments

Comments
 (0)