X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsearchable%2FBasicSearchable.java;h=d8076fa7a1b87f99e452cddcef30100305884c7b;hb=aaeabf3a939ce517e3044a0a8ee782f19f3f930d;hp=ebc509611856b0a6f6d699a64c7a96592a68428a;hpb=91b82a5cbd8a9c90798d1bd49bfa9a061e652a6a;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/searchable/BasicSearchable.java b/src/be/nikiroo/fanfix/searchable/BasicSearchable.java index ebc5096..d8076fa 100644 --- a/src/be/nikiroo/fanfix/searchable/BasicSearchable.java +++ b/src/be/nikiroo/fanfix/searchable/BasicSearchable.java @@ -34,6 +34,38 @@ public abstract class BasicSearchable { support = BasicSupport.getSupport(getType(), null); } + /** + * Find the given tag by its hierarchical IDs. + *
+ * I.E., it will take the tag A, subtag B, subsubtag C...
+ *
+ * @param ids
+ * the IDs to look for
+ *
+ * @return the appropriate tag fully filled, or NULL if not found
+ *
+ * @throws IOException
+ * in case of I/O error
+ */
+ public SearchableTag getTag(Integer... ids) throws IOException {
+ SearchableTag tag = null;
+ List
* URL is guaranteed to be usable, LUID will always be NULL.
*
- * @param tagId
+ * @param tag
* the tag to search for
* @param page
* the page to use for result pagination (see
@@ -172,7 +221,7 @@ public abstract class BasicSearchable {
*
* @return an implementation that supports it, or NULL
*/
- public static BasicSearchable getSearchable(SupportType type) {
+ static public BasicSearchable getSearchable(SupportType type) {
BasicSearchable support = null;
switch (type) {
@@ -195,7 +244,7 @@ public abstract class BasicSearchable {
// TODO
break;
case MANGA_LEL:
- // TODO
+ support = new MangaLel();
break;
case CBZ:
case HTML: