fix: deep links from monitors
This commit is contained in:
@@ -3,7 +3,19 @@
|
|||||||
<a href="{{ path('app_search_result', {imdbId: monitor.imdbId, mediaType: monitor.monitorType|as_download_type}) }}"
|
<a href="{{ path('app_search_result', {imdbId: monitor.imdbId, mediaType: monitor.monitorType|as_download_type}) }}"
|
||||||
class="mr-1 hover:underline rounded-md"
|
class="mr-1 hover:underline rounded-md"
|
||||||
>
|
>
|
||||||
{{ monitor.title }}
|
|
||||||
|
{% if monitor.monitorType == "movies" %}
|
||||||
|
{% set routeParams = {imdbId: monitor.imdbId, mediaType: monitor.monitorType} %}
|
||||||
|
{% set route = path('app_search_result', routeParams) %}
|
||||||
|
{% else %}
|
||||||
|
{% set episodeIdDto = extract_from_episode_id(monitor|monitor_media_id) %}
|
||||||
|
{% set routeParams = {imdbId: monitor.imdbId, mediaType: monitor.monitorType, season: episodeIdDto.season, episode: episodeIdDto.episode} %}
|
||||||
|
{% set route = path('app_search_result', routeParams) ~ "#" ~ episode_anchor(episodeIdDto.season, episodeIdDto.episode) %}
|
||||||
|
{% endif %}
|
||||||
|
<a href="{{ route }}"
|
||||||
|
class="mr-1 hover:underline rounded-md max-w-[10ch] md:max-w-[unset] truncate">
|
||||||
|
{{ monitor.title }}
|
||||||
|
</a>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">
|
||||||
|
|||||||
Reference in New Issue
Block a user