Kodi Community Forum
stringcompares used for detecting bluray,dvd? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: stringcompares used for detecting bluray,dvd? (/showthread.php?tid=125808)



stringcompares used for detecting bluray,dvd? - Martijn - 2012-03-17

What string compares do skinners use for detecting if the movie is a bluray,dvd or 3d movie?

This for downloading the correct moviedisc in Artwork downloader


Edit:
Ok so far I have when a filename contains:

DVD:
  • dvd
  • extension .ifo
  • extension .vob

BluRay:
  • bluray
  • blu-ray
  • brrip
  • bdrip
  • extension .m2ts
  • extension .bdmv

3D:
  • 3d (so even when 3d-bluray or 3dbluray)

When nothing provided in filename it will select on resolution:
  • <720 is DVD
  • =>720 is BluRay



RE: stringcompares used for detecting bluray,dvd? - BigNoid - 2012-03-17

Check variables.xml, sourceflagvar of my skin.