Skip to content

Commit

Permalink
fix: allow opening any files
Browse files Browse the repository at this point in the history
fix #170
  • Loading branch information
vzhd1701 committed Oct 17, 2023
1 parent 6cbc01f commit c775315
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gridplayer/models/video_uri.py
Expand Up @@ -29,9 +29,6 @@ def validate(cls, path: Path) -> Path:
if not path.is_absolute():
raise PathNotAbsoluteError(path=path)

if path.suffix[1:].lower() not in SUPPORTED_MEDIA_EXT:
raise PathExtensionNotSupportedError(path=path)

return path


Expand Down
4 changes: 4 additions & 0 deletions gridplayer/player/managers/add_videos.py
Expand Up @@ -91,6 +91,10 @@ def _get_name_filters():
"name": translate("Dialog - Add Files", "Audio", "File formats"),
"extensions": SUPPORTED_AUDIO_EXT,
},
{
"name": translate("Dialog - Add Files", "All", "File formats"),
"extensions": {"*"},
},
]

name_filers = []
Expand Down

0 comments on commit c775315

Please sign in to comment.