Skip to content

Commit

Permalink
fix: reuters and pronhub routes params
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Sep 23, 2024
1 parent a21b518 commit 78cf9b3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
27 changes: 23 additions & 4 deletions lib/routes/pornhub/pornstar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,32 @@ export const route: Route = {
path: '/pornstar/:username/:language?/:sort?',
categories: ['multimedia', 'popular'],
view: ViewType.Videos,
example: '/pornhub/pornstar/june-liu',
example: '/pornhub/pornstar/june-liu/www/mr',
parameters: {
username: 'username, part of the url e.g. `pornhub.com/pornstar/june-liu`',
language: 'language',
username: {
description: 'username, part of the url e.g. `pornhub.com/pornstar/june-liu`',
},
language: {
description: 'language',
options: [
{ value: 'www', label: 'English' },
{ value: 'de', label: 'Deutsch' },
{ value: 'es', label: 'Español' },
{ value: 'fr', label: 'Français' },
{ value: 'it', label: 'Italiano' },
{ value: 'ja', label: '日本語' },
{ value: 'pt', label: 'Português' },
{ value: 'pl', label: 'Polski' },
{ value: 'rt', label: 'Русский' },
{ value: 'nl', label: 'Dutch' },
{ value: 'cs', label: 'Czech' },
{ value: 'cn', label: '中文(简体)' },
],
default: 'www',
},
sort: {
description: 'sorting method',
default: 'mv',
default: 'mr',
options: [
{
label: 'Most Recent',
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/reuters/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const route: Route = {
{ value: 'litigation', label: 'Litigation' },
{ value: 'transactional', label: 'Transactional' },
],
default: '',
default: 'us',
},
},
features: {
Expand Down

0 comments on commit 78cf9b3

Please sign in to comment.