Releases: eoyilmaz/timecode
0.4.2
0.4.1
0.4.0
-
New: Frame delimiter is now set to ":" for Non Drop Frame, ";" for Drop Frame and "." for millisecond based time codes. If
Timecode.__init__()start_timecode is passed a string with the wrong delimiter it will be converted automatically. -
Update: All tests involving Drop Frame and millisecond time codes are now set to use the new delimiter.
-
New:
Timecode.tc_to_string()method added to present the correctly formatted time code. -
New:
Timecode.ms_frameboolean attribute added. -
New:
Timecode.__init__()now supports strings, ints and floats for the framerate argument.
0.3.0
0.2.0
-
New: Rewritten the whole library from scratch.
-
New: Most important change is the licencing. There was now license defined in the previous implementation. The library is now licensed under MIT license.
-
Update: Timecode.init() arguments has been changed, removed the unnecessary
drop_frame,iter_returnsarguments.Drop frame can be interpreted from the
framerateargument anditer_returnsis unnecessary cause any iteration on the object will return anotherTimecodeinstance.If you want to get a string representation use
Timecode.__str__()orstr(Timecode)orTimecode.__repr__()or\`Timecode\``` or'%s' % Timecode`` any other thing that will convert it to a string.If you want to get an integer use
Timecode.framesorTimecode.frame_countdepending on what you want to get out of it.So setting the
iter_returnsto something and nailing the output was unnecessary. -
Update: Updated the drop frame calculation to a much better one, which is based on to the blog post of David Heidelberger at http://www.davidheidelberger.com/blog/?p=29
-
New: Added
Timecode.__eq__()so it is now possible to check the equality of two timecode instances or a timecode and a string or a timecode and an integer (which will check the total frame count). -
Update:
Timecode.tc_to_frames()now needs a timecode as a string and will return an integer value which is the number of frames in that timecode. -
Update:
Timecode.frames_to_tc()now needs an integer frame count and returns 4 integers for hours, minutes, seconds and frames. -
Update:
Timecode.hrs,Timecode.mins,Timecode.secsandTimecode.frsattributes are now properties. Because it was so rare to check the individual hours, minutes, seconds or frame values, their values are calculated withTimecode.frames_to_tc()method. But in future they can still be converted to attributes and their value will be updated each time theTimecode.framesattribute is changed (so add a_framesattribute and makeframesa property with a getter and setter, and update the hrs, mins, secs and frs in setter etc.). -
Update: Removed
Timecode.calc_drop_frame()method. The drop frame calculation is neatly done insideTimecode.frames_to_tc()andTimecode.tc_to_frames()methods. -
Update: Updated
Timecode.parse_timecode()method to a much simpler algorithm. -
Update: Removed
Timecode.__return_item__()method. It is not necessary to return an item in that way anymore. -
Update: Removed
Timecode.make_timecode()method. It was another unnecessary method, so it is removed. Now using simple python string templates for string representations. -
New: Added
timecode.__version__string, and set the value to "0.2.0". -
Update: Removed
Timecode.set_int_framerate()method. Setting the framerate will automatically set theTimecode.int_framerateattribute.