mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-24 02:28:12 +00:00
Merge pull request #112 from maluueu/iptv-smarters-support_csrf-exception
apps: output: views.py: exclude M3U endpointfrom CSRF protection
This commit is contained in:
commit
9b053ce1a5
1 changed files with 2 additions and 0 deletions
|
|
@ -3,10 +3,12 @@ from django.urls import reverse
|
|||
from apps.channels.models import Channel, ChannelProfile
|
||||
from apps.epg.models import ProgramData
|
||||
from django.utils import timezone
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from datetime import datetime, timedelta
|
||||
import re
|
||||
import html # Add this import for XML escaping
|
||||
|
||||
@csrf_exempt
|
||||
def generate_m3u(request, profile_name=None):
|
||||
"""
|
||||
Dynamically generate an M3U file from channels.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue