mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GMG-Devel] Review


From: Boris Bobrov
Subject: Re: [GMG-Devel] Review
Date: Tue, 26 Jul 2016 02:18:29 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0

One more thing. When i try to edit a video, i am getting

  ImportError: cannot import name 'path_subtitle'

in mediagoblin/edit/views.py, line 34.


On 07/25/2016 02:42 AM, Boris Bobrov wrote:
Hi,

Here is short review. Unfortunatelly, i was not able to review too much
because of traceback.

1. Why is the plugin called "custom_subtitles"? :) I think it should be
"subtitles".

mediagoblin/plugins/custom_subtitles/tools.py:
2.

 20 def get_path(path):
 21     path = eval(path) # Converting string to a tuple
 22     return path

2. Please don't use eval. Find another way. json might be a good choice.

3. Indentation in open_subtitle and save_subtitle is broken. Now when i
click "add subtitles" it doesn't work and i get a traceback.

To prevent errors like this i suggest to write some unit tests. Please
write some basic ones, that would upload subtitles and delete them.
Have a look at how video and audio are tested.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]