From 810ba77e00655c6422e575751188d8289f76116d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 8 Feb 2011 22:16:04 -0500 Subject: [PATCH] Move the TODO I just wrote into the todo.txt document. --- doc/todo.txt | 6 ++++++ src/websites/mentalzero.rb | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/todo.txt b/doc/todo.txt index 36ed738..ed0bbe8 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -1,2 +1,8 @@ 1) It's about time I separated VALID_FOO_URL_REGEX into a list of possible regular expressions. + +2) After #1 is done, the owns_url? method can be factored out. + +3) Merge the Mentalzero get_video_filename with the algorithm in the + Xvideos class. Only the last lines differ. Maybe we could have a + collection of filename-getting algorithms. diff --git a/src/websites/mentalzero.rb b/src/websites/mentalzero.rb index e2ce6bf..60b83ac 100644 --- a/src/websites/mentalzero.rb +++ b/src/websites/mentalzero.rb @@ -37,11 +37,6 @@ class Mentalzero < Website def get_video_filename() - # - # TODO: Merge this with the algorithm in the Xvideos class. Only - # the last lines differ. Maybe we could have a collection of - # filename-getting algorithms. - # # Override the default since a nice human-readable name is right # at the end of @url. file_and_params = @url.split('/').pop() -- 2.44.2