old_contents: from django.shortcuts import render
  from django.shortcuts import render, HttpResponse, HttpResponseRedirect, get_object_or_404
  import os
  
  # Create your views here.
  def player(request):
      
      file_path = request.GET["file"]
      subtitles_path = request.GET.get("subtitles", "")
      
      os.chdir(file_path)
      
      cmd = "omxplayer {}".format(file_path)
      
      if subtitles_path:
          cmd += "--subtitles {}".format(subtitles_path)
          
      os.system(cmd)
      
      return render(request, "remote/main.html", {"file" : file_path})
      
  def launch(request):
      return HttpResponse("---")
      
  def pause(request):
      return HttpResponse("---")
      
  def play(request):
      return HttpResponse("---")
      
  
new_contents: from django.shortcuts import render
  from django.shortcuts import render, HttpResponse, HttpResponseRedirect, get_object_or_404
  import os
  
  # Create your views here.
  def player(request):
      
      file_path = request.GET["file"]
      subtitles_path = request.GET.get("subtitles", "")
      
      cmd = "omxplayer {}".format(file_path)
      
      if subtitles_path:
          cmd += "--subtitles {}".format(subtitles_path)
          
      os.system(cmd)
      
      return render(request, "remote/main.html", {"file" : file_path})
      
  def launch(request):
      return HttpResponse("---")
      
  def pause(request):
      return HttpResponse("---")
      
  def play(request):
      return HttpResponse("---")
      
  
subject: Fix bug with path