Skip to content

Commit

Permalink
fix: senscritique query
Browse files Browse the repository at this point in the history
  • Loading branch information
pmb committed Dec 20, 2020
1 parent c28d21c commit fbca9d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/shared/components/meta/service/meta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ export class MetaService {
}
} else if (site === DuckDuckGo.SEARCH_BANG_SENSCRITIQUE.site) {
if (isMovie) {
result += '&filter=movies';
result = result.replace('recherche?query', 'search?q');
result += '&categories[0][0]=Films';
} else if (isSerie) {
result += '&filter=tvshows';
result = result.replace('recherche?query', 'search?q');
result += '&categories[0][0]=Séries';
} else {
result += '&filter=contacts';
result = result.replace('recherche?query', 'searchArtist?q');
}
}
return result;
Expand Down

0 comments on commit fbca9d8

Please sign in to comment.